title: How to parse a JSON string into JsonNode in Jackson?
body: <p>It should be so simple, but I just cannot find it after being trying for an hour.</p>
  <p>I need to get a JSON string, for example, <code>{&quot;k1&quot;:v1,&quot;k2&quot;:v2}</code>, parsed as a <code>JsonNode</code>.</p>
  <pre><code>JsonFactory factory = new JsonFactory();
  JsonParser jp = factory.createJsonParser(&quot;{\&quot;k1\&quot;:\&quot;v1\&quot;}&quot;);
  JsonNode actualObj = jp.readValueAsTree();
  </code></pre>
  <p>gives</p>
  <blockquote>
  <p><code>java.lang.IllegalStateException: No ObjectCodec defined for the parser, can not deserialize JSON into JsonNode tree</code></p>
  </blockquote>