title: how to read data from json url in java?
body: <p>I came across the following tutorial:
  <a href="http://www.mkyong.com/java/how-to-convert-java-object-to-from-json-jackson/" rel="nofollow">http://www.mkyong.com/java/how-to-convert-java-object-to-from-json-jackson/</a></p>
  
  <p>But this tutorial shows how to convert json to a Java object , when the json file is stored on the user's pc.
  What I want to do is, when I go to the following link:</p>
  
  <p>http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=[MyApiKey]&amp;q=Toy+Story+3&amp;page_limit=1</p>
  
  <p>it returns me the following json data:</p>
  
  <pre><code>{
    "total": 2,
    "movies": [{
      "id": "770672122",
      "title": "Toy Story 3",
      "year": 2010,
      "mpaa_rating": "G",
      "runtime": 103,
      "critics_consensus": "Deftly blending comedy, adventure, and honest emotion, Toy Story 3 is a rare second sequel that really works.",
      "release_dates": {
        "theater": "2010-06-18",
        "dvd": "2010-11-02"
      },
      "ratings": {
        "critics_rating": "Certified Fresh",
        "critics_score": 99,
        "audience_rating": "Upright",
        "audience_score": 91
      },
      "synopsis": "Pixar returns to their first success with Toy Story 3. The movie begins with Andy leaving for college and donating his beloved toys -- including Woody (Tom Hanks) and Buzz (Tim Allen) -- to a daycare. While the crew meets new friends, including Ken (Michael Keaton), they soon grow to hate their new surroundings and plan an escape. The film was directed by Lee Unkrich from a script co-authored by Little Miss Sunshine scribe Michael Arndt. ~ Perry Seibert, Rovi",
      "posters": {
        "thumbnail": "http://content6.flixster.com/movie/11/13/43/11134356_mob.jpg",
        "profile": "http://content6.flixster.com/movie/11/13/43/11134356_pro.jpg",
        "detailed": "http://content6.flixster.com/movie/11/13/43/11134356_det.jpg",
        "original": "http://content6.flixster.com/movie/11/13/43/11134356_ori.jpg"
      },
      "abridged_cast": [
        {
          "name": "Tom Hanks",
          "characters": ["Woody"]
        },
        {
          "name": "Tim Allen",
          "characters": ["Buzz Lightyear"]
        },
        {
          "name": "Joan Cusack",
          "characters": ["Jessie the Cowgirl"]
        },
        {
          "name": "Don Rickles",
          "characters": ["Mr. Potato Head"]
        },
        {
          "name": "Wallace Shawn",
          "characters": ["Rex"]
        }
      ],
      "alternate_ids": {"imdb": "0435761"},
      "links": {
        "self": "http://api.rottentomatoes.com/api/public/v1.0/movies/770672122.json",
        "alternate": "http://www.rottentomatoes.com/m/toy_story_3/",
        "cast": "http://api.rottentomatoes.com/api/public/v1.0/movies/770672122/cast.json",
        "clips": "http://api.rottentomatoes.com/api/public/v1.0/movies/770672122/clips.json",
        "reviews": "http://api.rottentomatoes.com/api/public/v1.0/movies/770672122/reviews.json",
        "similar": "http://api.rottentomatoes.com/api/public/v1.0/movies/770672122/similar.json"
      }
    }],
    "links": {
      "self": "http://api.rottentomatoes.com/api/public/v1.0/movies.json?q=Toy+Story+3&amp;page_limit=1&amp;page=1",
      "next": "http://api.rottentomatoes.com/api/public/v1.0/movies.json?q=Toy+Story+3&amp;page_limit=1&amp;page=2"
    },
    "link_template": "http://api.rottentomatoes.com/api/public/v1.0/movies.json?q={search-term}&amp;page_limit={results-per-page}&amp;page={page-number}"
  }
  </code></pre>
  
  <p>I want to store this data in a Java Object and then use it. I am a newbie in Java programming.
  Thanks.</p>