This seems to be working as expected: Java compiler replaces "\\" in
input String with single "\", and then in JSON String "\" is taken to
mean JSON escaping so "\/" is decoded as "/".
It might make sense to construct JsonNode value instead of raw JSON
escaped String since then all escaping would be handled by Jackson --
but if you must pass a String that contains JSON, you will need to use
more escaping.
Something like:
String string = "{\"field\" : \" \\\\/ \"}";
(two "\"s for Javac, and then two of those for JSON escaping)
Constructing JsonNode on the other hand would be
ObjectNode n = mapper.createObjectNode();
n.put("field", "\\/"); // still need doubling for javac
-+ Tatu +-