title: Parsing a json file to POJO using Jackson
body: <p>I have a json file filled with twitter tweets such as the following:</p>
  
  <pre><code>{"text": "RT @7NewsSydney: Fire rips through party island Ibiza. #7News, "lang": "en", "coordinates": { "coordinates": [150.595679, -34.187708] , "type":"Point"}, "created_at": "Mon Mar 06 22:47:10 +0000 2017"}
  
  {"text": "Fire rips through party island Ibiza. #7News ", "user": {"id": "156464691", "name": "7 News Sydney"}, "lang": "en","created_at": "Mon Mar 06 22:43:11 +0000 2017"}
  </code></pre>
  
  <p>I want to convert them into POJO, I have defined the tweets class to</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  import com.fasterxml.jackson.databind.*;
  
  public class Tweets {
      private int id;
      private String username;
      private String text;
      private int coordinates;
      private String timestamp;
  }
  
  ObjectMapper mapper = new ObjectMapper();
  Tweets tweets = mapper.readValue(new File(tweets.json), Tweets.class);
  </code></pre>
  
  <p>The trouble that I have
  1. the tweet is not the same, for example, the first tweet have a coordinate key-value where the second one doesnt.</p>
  
  <p>Is this parsing technique correct? Can someone  help please</p>