title: How do I convert a LinkedTreeMap to gson JsonObject
body: <p>For a java data handler, I send properly formatted JSON, but a combination of Spring, Java deciding how to cast what it sees, and frameworks I really shouldn't go changing mangle that JSON so that once I can see it, it's turned into a LinkedTreeMap, and I need to transform it into a JsonObject. 
  This is not to serialize/de-serialize JSON into java objects, it's "final form" is a gson JsonObject, and it needs to be able to handle literally any valid JSON. </p>
  
  <pre><code>{
  "key":"value",
  "object": {
      "array":[
          "value1", 
          "please work"
          ]
      }
  }
  </code></pre>
  
  <p>is the sample I've been using, once I see it, it's a LinkedTreeMap that .toString() s to </p>
  
  <pre><code>{key=value, object={array=[value1, please work]}}
  </code></pre>
  
  <p>where you can replace "=" with ":", but that doesn't have the internal quotes for the </p>
  
  <pre><code>new JsonParser().parse(gson.toJson(STRING)).getAsJsonObject()
  </code></pre>
  
  <p>strategy. </p>
  
  <p>Is there a more direct way to convert LinkedTreeMap to JsonObject, or a library to add the internal quotes to the string, or even a way to turn a sting into a JsonObject that doesn't need the internal quotes? </p>