Skip to content

Instantly share code, notes, and snippets.

@dsdstudio
Created June 1, 2013 02:39
Show Gist options
  • Save dsdstudio/5689102 to your computer and use it in GitHub Desktop.
Save dsdstudio/5689102 to your computer and use it in GitHub Desktop.
JsonNode put data
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