I\'ve a particular JSON Node that corresponds to import org.codehaus.jackson.JsonNode, and not import org.codehaus.jackson.map.JsonNode.
[ { \"g
According to the JSONObject documentation, JSONObject implements Map.remove, which returns the value stored at that key. Use it like
JSONObject json = new JSONObject(); json.put("key", "value"); String str = (String)json.remove("key");