title: Issue with parsing the content from JSON file with Jackson & message- JsonMappingException -Cannot deserialize as out of START_ARRAY token
body: <p>Given the following .json file:</p>
  
  <pre><code>[
      {
          "name" : "New York",
          "number" : "732921",
          "center" : [
                  "latitude" : 38.895111, 
                  "longitude" : -77.036667
              ]
      },
      {
          "name" : "San Francisco",
          "number" : "298732",
          "center" : [
                  "latitude" : 37.783333, 
                  "longitude" : -122.416667
              ]
      }
  ]
  </code></pre>
  
  <p>I prepared two classes to represent the contained data:</p>
  
  <pre><code>public class Location {
      public String name;
      public int number;
      public GeoPoint center;
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public class GeoPoint {
      public double latitude;
      public double longitude;
  }
  </code></pre>
  
  <p>In order to parse the content from the .json file I use <a href="http://wiki.fasterxml.com/JacksonHome">Jackson 2.2.x</a> and prepared the following method:</p>
  
  <pre><code>public static List&lt;Location&gt; getLocations(InputStream inputStream) {
      ObjectMapper objectMapper = new ObjectMapper();
      try {
          TypeFactory typeFactory = objectMapper.getTypeFactory();
          CollectionType collectionType = typeFactory.constructCollectionType(
                                              List.class, Location.class);
          return objectMapper.readValue(inputStream, collectionType);
      } catch (IOException e) {
          e.printStackTrace();
      }
      return null;
  }
  </code></pre>
  
  <p>As long as I leave out the <code>center</code> property all content can be parsed. However, when I try to parse the geo-coordinates I end up with the following error message:</p>
  
  <blockquote>
    <p>com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of<br>
      com.example.GeoPoint out of START_ARRAY token at [Source: android.content.res.AssetManager$AssetInputStream@416a5850; line: 5, column: 25]<br>
    (through reference chain: com.example.Location["center"])</p>
  </blockquote>