title: How to parse JSON to list of strings?
body: <p>I have a json file.</p>
  
  <pre><code>{
      "data" : [
          "my/path/old",
          "my/path/new"
      ]
  }
  </code></pre>
  
  <p>I need to conver it to ArrayList of String. How to do it using Jackson library?</p>
  
  <p>UPD:</p>
  
  <p>My code:</p>
  
  <pre><code>Gson gson = new Gson();        
  JsonReader reader = new JsonReader(new InputStreamReader(FileReader.class.getResourceAsStream(file)));
  
  List&lt;String&gt; list = (ArrayList) gson.fromJson(reader, ArrayList.class);
  
  for (String s : list) {
      System.out.println(s);
  }
  </code></pre>
  
  <p>And my exception:</p>
  
  <pre><code>Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected value at line 1 column 1
  </code></pre>
  
  <p>My new update</p>
  
  <p>UPD2:</p>
  
  <pre><code>Gson gson = new Gson();
  Type list = new TypeToken&lt;List&lt;String&gt;&gt;(){}.getType();
  JsonReader reader = new JsonReader(new InputStreamReader(FileReader.class.getResourceAsStream(file)));
  List&lt;String&gt; s = gson.fromJson(reader, list);
  System.out.println(s);
  </code></pre>