title: Which Jackson maven dependencies to include in spring 3.1 project for JAXB JSON marshalling?
body: <p>In the code sample available <a href="http://sleeplessinslc.blogspot.nl/2012/01/spring-31-mvc-example.html" rel="nofollow">here</a>, one imports the following for JSON JAXB marshalling:</p>
  
  
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
      &lt;version&gt;1.5.3&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-oxm&lt;/artifactId&gt;
      &lt;version&gt;3.1.0.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Yet, <a href="http://hillert.blogspot.nl/2011/01/marshal-json-data-using-jackson-in.html" rel="nofollow">this</a> blog post, referring to <a href="http://ondra.zizka.cz/stranky/programovani/java/jaxb-json-jackson-howto.texy" rel="nofollow">this</a> blog post, suggests:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;!-- Jackson --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-core-lgpl&lt;/artifactId&gt;
      &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-mapper-lgpl&lt;/artifactId&gt;
      &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-xc&lt;/artifactId&gt;
      &lt;version&gt;1.3.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>where 'jackson-xc provides the additional Jaxb support'.</p>
  
  <p>What is the difference between both set of maven dependencies when it comes to JAXB JSON marhsalling in Spring? Which one should be used preferably?</p>