title: How to convert JSOn in the form of a String to List<String> in Java
body: <pre class="lang-java prettyprint-override"><code>ObjectMapper mapper = new ObjectMapper();
  List&lt;String&gt; stringIds = mapper.readValue(result, new TypeReference&lt;List&lt;String&gt;&gt;(){});
  </code></pre>
  
  <p>where result = {
      "stringids": [
          "abc",
          "xyz"
      ]
  }</p>
  
  <p>So for Input <code>{
      "stringids": [
          "abc",
          "xyz"
      ]
  }</code>, I want the result to be a list of strings abc, xyz</p>
  
  <p>Getting this exception when trying above code:-
  <code>
  com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
  </code></p>