It should be so simple, but I just cannot find it after being trying for an hour #embarrasing.
I need to get a JSON string, for example, {\"k1\":v1,\"k2\":v2}<
{\"k1\":v1,\"k2\":v2}<
A slight variation on Richards answer but readTree can take a string so you can simplify it to:
readTree
ObjectMapper mapper = new ObjectMapper(); JsonNode actualObj = mapper.readTree("{\"k1\":\"v1\"}");