Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从一个休息 api 中获取一个 json,并希望在不创建对象的情况下从 json 中取出一些数据。我可以使用 Apache JXPath 从 json 中获取数据吗?如果是,如何。
假设我有一个 json 字符串 = {"name": "xyz", "class": "10"}
现在我需要使用 JXPath 找出 name 参数的值: $.name
如何编写java代码来获取参数值
谢谢