My required JSON is :
[ "URI" : "http://192.168.1.1/" ]
I use the following way to create this JSON:
{
String requiredUri = "http://192.168.1.1/";
JSOnObject jsonObject = new JSONObject();
jsonObject.put("URI", requiredUri);
String jsonData = jsonObject.toString();
}
This time I get get the output as :
[
"URI" : "http:\/\/192.168.1.1\/"
]
Please tell me what should be done so that these forward slashes are not included in the resultant json.