title: JsonParseException while parsing from String to Map
body: <p>I have done Map object to string object conversion like this</p>
  
  <pre><code>    public String getJsonString(Map&lt;String, Map&lt;String,List&lt;CalculateContentCount&gt;&gt;&gt; countMap) {
      Gson gson = new Gson();
      String jsonString = gson.toJson(countMap);
      return jsonString;
  }
  </code></pre>
  
  <p>In ftl I have set the returned String object into request and pased it into the JSP file </p>
  
  <pre><code>   &lt;#assign countMap = json&gt;
     &lt;form action="/alfresco/jsp/kpub/reports/exportContentCountList.jsp" method="get"&gt;
  
  &lt;input type="hidden" name="countMap" id="countMap" value="${countMap}"&gt;
  &lt;input type="submit" value="ExportFiletoCSV"/&gt;
     &lt;/form&gt;
  </code></pre>
  
  <p>In exportContentCountList, I tried to parse the string object back to Map object,</p>
  
  <pre><code>String jsonString = request.getParameter("countMap");
  System.out.println("jsonString : "+jsonString);
  Gson gson = new Gson();
  Map&lt;String,Map&lt;String,List&lt;CalculateContentCount&gt;&gt;&gt; countMap = null;
  Type type = null;
  if(jsonString != null &amp;&amp; !"".equals(jsonString)) {
      type = new TypeToken&lt;Map&lt;String,Map&lt;String,List&lt;CalculateKpubContentCount&gt;&gt;&gt;&gt;(){}.getType();
      countMap = gson.fromJson(jsonString,type);
  }
  </code></pre>
  
  <p>While executing, following exception occurs. Here's the exceptiom</p>
  
  <pre><code>com.google.gson.JsonParseException: Failed parsing JSON source:        
  caused by:
  com.google.gson.ParseException: Encountered "&lt;EOF&gt;" at line 1, column 1. 
  Was expecting one of: 
  &lt;IDENTIFIER_SANS_EXPONENT&gt; ... 
  &lt;IDENTIFIER_STARTS_WITH_EXPONENT&gt; ... 
  &lt;SINGLE_QUOTE_LITERAL&gt; ... 
  &lt;DOUBLE_QUOTE_LITERAL&gt; ... 
  "}" ... 
  </code></pre>
  
  <p>What may be the problem?</p>