title: How to escape the quotes in JSON Object?
body: <p>Below is my method which makes the <code>JSONObject</code> and then print out the <code>JSONString</code>.</p>
  
  <p>I am using Google GSON.</p>
  
  <pre><code>private String generateData(ConcurrentMap&lt;String, Map&lt;Integer, Set&lt;Integer&gt;&gt;&gt; dataTable, int i) {
  
      JsonObject jsonObject = new JsonObject();
  
      Set&lt;Integer&gt; ap = dataTable.get("TEST1").get(i);
      Set&lt;Integer&gt; bp = dataTable.get("TEST2").get(i);
  
      jsonObject.addProperty("description", "test data");
      jsonObject.addProperty("ap", ap.toString());
      jsonObject.addProperty("bp", bp.toString());
  
      System.out.println(jsonObject.toString());
  
      return jsonObject.toString();
  }
  </code></pre>
  
  <p>Currently if I print out the  <code>jsonObject.toString()</code> then it prints out like this - </p>
  
  <pre><code>{"description":"test data","ap":"[0, 1100, 4, 1096]","bp":"[1101, 3, 6, 1098]"}
  </code></pre>
  
  <p>But this is not what I need. I want to print out like below which is without double quote on <code>ap</code> and <code>bp</code> values.</p>
  
  <pre><code>{"description":"test data","ap":[0, 1100, 4, 1096],"bp":[1101, 3, 6, 1098]}
  </code></pre>
  
  <p>I am not sure how do I escape that quotes in the JSONObject?</p>