title: How to use Jackson to parse JSON from Rest Web Service
body: <p>I'm building a simple Java client to call a Rest Web Service.
  I would like to use JACKSON to parse JSON response.</p>
  <p>So I'm try to build this code:</p>
  <pre><code>public Object clearF3A(@RequestBody ImportRRData myData){
          try{
              Object RRout = null;
  
              URL url = new URL(
                      &quot;http://localhost:8080/CustomerDB/webresources/co.com.mazf.ciudad&quot;);
              HttpURLConnection conn = (HttpURLConnection) url.openConnection();
              conn.setRequestMethod(&quot;GET&quot;);
              conn.setRequestProperty(&quot;Accept&quot;, &quot;application/xml&quot;);
  
              if (conn.getResponseCode() != 200) {
                  throw new RuntimeException(&quot;Failed : HTTP error code : &quot;
                          + conn.getResponseCode());
              }
  
              BufferedReader br = new BufferedReader(new InputStreamReader(
                      (conn.getInputStream())));
  
              String output;
  
             
  
              conn.disconnect();
              return RRout;
          }catch(Exception e){
              e.printStackTrace();
              return null;
          }
  
  
      }
  </code></pre>
  <p>What can I change to use Jackson to parse the response of web service ?</p>