jackson用相仿xpath的方式读取、修改json

jackson用类似xpath的方式读取、修改jsonjackson是一款效率极高的json处理工具,如果能用xpath读取xml的那种

jackson用类似xpath的方式读取、修改json

jackson是一款效率极高的json处理工具,如果能用xpath读取xml的那种方式读取、修改json就更好了,翻看jackson的介绍文档后,发现真的有这样的方式,即jackson的Tree Model?http://wiki.fasterxml.com/JacksonInFiveMinutes#Tree_Model_Example

代码如下:

?

?