Created
June 1, 2013 02:39
-
-
Save dsdstudio/5689102 to your computer and use it in GitHub Desktop.
JsonNode put data
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
ObjectMapper mapper = new ObjectMapper(); | |
JsonNode decodedNode = mapper.readTree(f); | |
if (decodedNode instanceof ObjectNode) { | |
((ObjectNode) decodedNode.with("networkInfo")).put("realip", remoteRealIP); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment