I am trying to create a JSONObject which has two parameters, for example:
JSONObject jobj;
jobj.put("data", {"hey":"hi"} ;
But the problem is as soon i create a JSONObject, it gets converted like this:
"data":"{\"hey\":\"hi\"}
My expectation is, I want it to look like this:
"data":{"hey":"hi"}
Also the second parameter is JSON as it random.