Created
September 30, 2014 13:22
-
-
Save realfirst/e42fc55060194ac95903 to your computer and use it in GitHub Desktop.
jackson nested json parse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JsonNode node = mapper.readValue("[{\"listed_count\":1720,\"status\":{\"retweet_count\":78}}]]", JsonNode.class); | |
System.out.println(node.findValues("retweet_count").get(0).asInt()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment