I need to parse json using jackson:
String string = "{\"field\" : \" \\/ \"}";
JsonNode node = new ObjectMapper().readTree(string);
String result = node.toString();
System.out.println(result);
I expect this kind of output:
result == {"field":" \/ "}
But, I end up with:
result == {"field":" / "}
How can I receive output like this?
result == {"field":" \/ "}
java <https://stackoverflow.com/questions/tagged/java>
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jackson-user/c73cb9f8-13c0-4702-a96a-27b515a1c757n%40googlegroups.com.