title: Best way to use Jackson JsonNodeFactory
body: <p>I'm using Jackson to build a custom JSON object.  Is the correct way of going about this?</p>
  
  <p>It seems to work well (and the output is correct) but I may be missing the way I use JsonNodeFactory.  Is the object meant to be passed around like I have done here?      </p>
  
  <pre><code>JsonNodeFactory factory = JsonNodeFactory.instance;
  ObjectNode dataTable = new ObjectNode(factory);
  ArrayNode aaData = new ArrayNode(factory);
  
  for (PkgLoad pkgLoad : pkgLoadList) {
      ObjectNode row = new ObjectNode(factory);
      row.put("ounces", pkgLoad.ounces);
      row.put("revolutions", pkgLoad.revolutions);
      aaData.add(row);
  }
  
  dataTable.put("aaData", aaData);
  </code></pre>