I'm using org.json package for parsing and manipulating jsonobject. Attached is the structure of my json doc. I'm accessing w
by the following code :
JSONObject temp = "json document";
JSONObject w_value = temp.getJSONObject("w");
s
is a child object inside w
. And s
has child objects inside it and it goes on like that. I want only key/value pair of w
. I want to get rid of s
child object completely and its child objects. Any idea how this can be done? I tried org.json package. It doesn't have a method to remove a child object.