0
这是我的回应。如何根据json响应中的同级属性值获取属性值?
[
{
"id": 123,
"name": "text1"
},
{
"id": 456,
"name": "text2"
},
{
"id": 789,
"name": "text3"
}
]
我可以只提供名称值并希望获取id属性。我正在使用放心。我可以创建一个地图,然后相应地找到它,但搜索诸如jsonPath()。get(id where name =“text2”)之类的解决方案。想想如果有什么事情可以这样做。
是否有任何用于检查json路径的在线评估程序? – asu