我有一个类似以下的JSON对象,我想获得每个属性唯一名称的列表,例如:
{
"store": {
"book": [
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
},
{
"category": "fiction",
"author": "J. R. R. Tolkien",
"title": "The Lord of the Rings",
"isbn": "0-395-19395-8",
"price": 22.99
}
],
"bicycle": {
"color": "red",
"price": 19.95
}
},
"expensive": 10
}
我的JSON路径查询应该返回
"store","book","category","author","title","price","isbn","bicycle","color","expensive"
我该如何表达一个JSON Path查询,以获取那个属性列表?