title: Convert JsonNode into POJO
body: <p>This may seem a little unusual, but I am looking for an efficient way to transform/map a <code>JsonNode</code> into a <code>POJO</code>.</p>
  
  <p>I store some of my Model's information in json files and I have to support a couple of version of my model.</p>
  
  <p>What I do is load the json file in memory in a JsonNode, apply a couple of versioning strategies  to make it match the latest version of my Model.</p>
  
  <pre><code>    ObjectMapper mapper = new ObjectMapper();
      BufferedReader fileReader = new BufferedReader(new FileReader(projPath));
  
      JsonNode rootNode = mapper.readTree(fileReader);
  
      //Upgrade our file in memory
      applyVersioningStrategy(rootNode);
  
      ProjectModel project = mapJsonNodeToProject(rootNode);
  </code></pre>
  
  <p>Unless there's a faster way to do it, I will probably end up simply manually applying the <code>JsonNodes</code> to my Model</p>