title: Why the extra backward slashes are being appended automatically?
body: <p>I have this below JSON </p>
  
  <pre><code>[
      {
          "itemid": "59",
          "toppings": [
              {
                  "name": "Quantity      1",
                  "value": [
                      "Honey with Chocolate Sauce  10 ML"
                  ]
              }
          ]
      }
  ]
  </code></pre>
  
  <p>And i am parsing it this way using org.json in java </p>
  
  <pre><code>JSONArray json = new JSONArray(orderjson);
  JSONObject orderdetailsjson = new JSONObject();
  
  for(int i=0;i&lt;json.length();i++)
  {
  
      JSONObject jsonobjectpar = json.getJSONObject(i);
      orderdetailsjson.put("orderid", jsonobjectpar.getString("orderid"));
      orderdetailsjson.put("itemid", jsonobjectpar.getString("itemid"));
      orderdetailsjson.put("toppings", jsonobjectpar.getString("toppings"));
  
  }
  
  System.out.println(orderdetailsjson);
  </code></pre>
  
  <p>When i ran the above , the output was </p>
  
  <pre><code>{
      "itemid": "59",
      "toppings": "[{\"name\":\"Quantity      1\",\"value\":[\"Honey with Chocolate Sauce  10 ML\"]}]"
  }
  </code></pre>
  
  <p>The toppings array has got extra backward slashes .</p>
  
  <p>Please let me know how can i eliminate them ??</p>
  
  <p>Why the extra backward slashes are being appended automaticaly ??</p>
  
  <p>How to eliminate them ??</p>
  
  <p>I tried to use </p>
  
  <pre><code>String toppings  = jsonobjectpar.getString("toppings");
  
  toppings =  toppings.replace("\\/", "/");
  
  orderdetailsjson.put("toppings", toppings);
  </code></pre>
  
  <p>but not working .</p>