Am using a function to add list items,name ,id into a jsonobject and returning that object into called function,and getting all the way..But i am little confused with parsing of that json string.
JSONObject obj = abcobj.function();
public JSONObject function()
{
jsonobj.put("test",list);
jsonobj.put("name",name);
jsonobj.put("id",id);
return jsonobj;
}
System.out.println("Json object"+devid);
Output
{"test":["test","test1"],"name":"xxxxx","id":"1234"}
please help me to parse this object