When i try to run this code in android i am getting the resultant String as "Name":"Text1\/Text2"
But the result should be {"Name":"Text1/Text2"}
.
try {
String str;
JSONObject json = new JSONObject();
json.put("Name", "Text1/Text2");
str = json.toString();
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thanks.