title: Get Java json in raw format (only enclosing strings with quotes) with gson
body: <p>Imagine I have the following JsonObject
  <code>{"name":"Test Name","id":13,"isimportant":true}</code></p>
  
  <p>I would like to add this to mysql, so I would iterate through the members with</p>
  
  <pre><code>void test(JsonObject jsonobject) {
          String names="";
          String values="";
          Set&lt;Entry&lt;String, JsonElement&gt;&gt; entrySet = jsonobject.entrySet();
          for(Map.Entry&lt;String,JsonElement&gt; entry : entrySet) {
              String key=entry.getKey();
              names+="`"+key+"`,";
              values+="\""+jsonobject.get(key).getAsString()+"\",";
          }
          ... create an insert query from the `names` and `values` strings
          ... and add to database
  }
  </code></pre>
  
  <p>To make sure the strings are processed correctly, I enclose all the values with quotes, so this would result in a query like </p>
  
  <pre><code>INSERT INTO TestTable (name,id,isimportant) VALUES ("Test Name","13","true")
  </code></pre>
  
  <p>I would prefer only to have quotes on the actual string variables, i.e. </p>
  
  <pre><code>INSERT INTO TestTable (name,id,isimportant) VALUES ("Test Name",13,true)
  </code></pre>
  
  <p>using the same formatting as in the original json.</p>
  
  <p>How can this be achieved? I generally use the gson library, i.e. JsonObjects rather than JSONObjects.</p>