Hi all
Given this code snippet
String json = "{\"bar\": null}";
JsonNode jsonNode = new ObjectMapper().readTree(json);
System.out.println(jsonNode.get("bar").asText("banana 1"));
System.out.println(jsonNode.get("foo").asText("banana 2"));
it will print "banana 1" and then fail with a NullPointerException. Is this
expected? Should I create an issue or it's known and it's been discussed
already somewhere else?
best regards
federico
--
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.