JSONObject 的 Jackson 2 等价物是什么? [英] What is the Jackson 2 equivalent of JSONObject?

查看:24
本文介绍了JSONObject 的 Jackson 2 等价物是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

fasterxml API 中的哪个类相当于 org.json.JSONObject?

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

推荐答案

看起来寻找的类是 ObjectNode,而不是 JSONObject.

It appears the class sought was ObjectNode, not JSONObject.

ObjectNode 现在位于 com.fasterxml.jackson.databind.node 包中的数据绑定项目中.最新的 JavaDoc 位于 http://fasterxml.github.com/jackson-databind/javadoc/2.0.2/com/fasterxml/jackson/databind/node/ObjectNode.html

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

这篇关于JSONObject 的 Jackson 2 等价物是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆