Below is my jsonString:
jsonString= {"date_of_birth":"17-2-1989 ","email_id":"[email protected]","fullname":"a","hp_id":"Wellcare","password":"a","phone_no":"12345","ss_no":"12345","username":"a"}
I wants to add "User" object to it
so I did this:
JSONObject jsonObj=new JSONObject();
jsonObj.put("User", jsonString);
but I am getting this:
{"User":"{\"date_of_birth\":\"17-2-2015 \",\"email_id\":\"[email protected]\",\"fullname\":\"a\",\"healthplan_provider_id\":\"Wellcare\",\"password\":\"a\",\"phone_no\":\"12345\",\"social_security_no\":\"12345\",\"username\":\"a\"}"}
An extra character '\' is added. So I want to remove it. Please help removing it.