How to extract JSON values that does not have attribute names?
问题 { "A1":{ "name":"Ad hoc", "projectId":0 }, "X2":{ "name":"BBB", "projectId":101 }, "AB":{ "name":"CCC", "projectId":102 }, "recordsCount":3 } For this JSON, how to extract values? i need output like, A1, Ad hoc X2, BBB AB, CCC experts inputs appreciated. 回答1: Analysis XPath can't read unnamed attributes. It will always result in an exception. If you want to get the values, you need to use JsonPath . Solution Even then, it makes sense to add surrounding brackets, otherwise the first level will