title: Gson Expected BEGIN_ARRAY but was STRING at line 1 column 62
body: <p>I have the following class :</p>
  
  <pre><code>final class CFS {
      public Map&lt;String, String&gt; files = new HashMap&lt;String, String&gt;();
      public List&lt;String&gt; directories = new ArrayList&lt;String&gt;();
  }
  </code></pre>
  
  <p>And this code which should parse the json :</p>
  
  <pre><code>CFS cfs = JStorage.getGson().fromJson(JSON_STRING, CFS.class);
  </code></pre>
  
  <p>Where </p>
  
  <pre><code>JSON_STRING = "{\"directories\" : [\"folder1\", \"folder1/folder2\"], \"files\" : [{\"folder1\" : \"file.txt\"}, {\"folder1/folder2\" : \"file.cfg\"}]}"
  </code></pre>
  
  <p>JSON is:</p>
  
  <pre><code>{
    "directories": ["folder1", "folder1/folder2"],
    "files": [
      {
        "folder1": "file.txt"
      }, 
      {
        "folder1/folder2": "file.cfg"
      }
    ]
  }
  </code></pre>
  
  <p>The error I'm getting is: <code>Expected BEGIN_ARRAY but was STRING at line 1 column 62</code></p>
  
  <p>But I have no idea why, the json is valid according to jsonlint.</p>
  
  <p>Any idea on why I am getting this error?</p>