What is the Jackson 2 equivalent of JSONObject?

jackson, json

Solution

It appears the class sought was `ObjectNode`, not `JSONObject`.

`ObjectNode` is now in the databind project, in the `com.fasterxml.jackson.databind.node` package. The latest JavaDoc is at http://fasterxml.github.com/jackson-databind/javadoc/2.0.2/com/fasterxml/jackson/databind/node/ObjectNode.html

Problem

What class in the fasterxml API is equivalent to the org.json.JSONObject?

Original source