title: how to parse given data into a java object
body: <p>I want to parse below given data in to some java object, but I am not able to parse. String is as follows - </p>
  
  <pre><code>{\"objectsTree\":\"{\"Address\":[],\"Customer\":[\"Address\"]}\",\"objectsSequence\":\"[\"Customer\",\"Address\"]\"}
  </code></pre>
  
  <p>I have tried parsing this into HashMap and HashMap
  but this is returning malformed JSON exception, and that is making sense, because of too many double quotes objects are ending abruptly. I want to parse this as follows-</p>
  
  <pre><code>{
  "objectsTree":"{"Address":[],"Customer":["Address"]}",
  "objectsSequence":"["Customer","Address"]"
  }
  </code></pre>
  
  <p>here you can see that objectsTree is one object against one string and objectSequence is another. to be specific object tree is supposed to be a treemap , object sequence is supposed to be a ArrayList. </p>
  
  <p>Any Idea how should I proceed.</p>
  
  <p>code update- </p>
  
  <p>package org.syncoms.backofficesuite.controller;</p>
  
  <p>import java.util.HashMap;</p>
  
  <p>import com.google.gson.Gson;</p>
  
  <p>public class Test {</p>
  
  <pre><code>public static void main(String[] args) {
  
      //String json = "{\"Success\":true,\"Message\":\"Invalid access token.\"}";
      String json ="{\"objectsTree\":\"{\"Address\":[],\"Customer\":[\"Address\"]}\",\"objectsSequence\":\"[\"Customer\",\"Address\"]\"}";
      Gson jsonParser = new Gson();
      @SuppressWarnings("unchecked")
      HashMap&lt;String,Object&gt; jo = (HashMap&lt;String,Object&gt;) jsonParser.fromJson(json, HashMap.class);
      System.out.println(jo);
      //Assert.assertNotNull(jo);
      //Assert.assertTrue(jo.get("Success").getAsString());
  
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>the error which I am getting -</p>
  
  <pre><code>Exception in thread "main" com.google.gson.JsonParseException: Failed parsing JSON source: java.io.StringReader@201644c9 to Json
      at com.google.gson.JsonParser.parse(JsonParser.java:59)
      at com.google.gson.Gson.fromJson(Gson.java:443)
      at com.google.gson.Gson.fromJson(Gson.java:396)
      at com.google.gson.Gson.fromJson(Gson.java:372)
      at org.syncoms.backofficesuite.controller.Test.main(Test.java:16)
  Caused by: com.google.gson.ParseException: Encountered " &lt;IDENTIFIER_SANS_EXPONENT&gt; "Address "" at line 1, column 19.
  Was expecting one of:
      "}" ...
      "," ...
  </code></pre>