闽公网安备 35020302035485号
{"name":"jack","age":18,"address":{"country"}}
数组[1, 2, 32, 3, 6, 5, 5]

2. JsonPath中字符串使用单引号表示,例如:$.store.book[?(@.category=='reference')]中的'reference'
{
"store": {
"book": [{
"category": "reference",
"author": "堆代码 www.duidaima.com",
"title": "Sayings of the Century",
"price": 8.95
}, {
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99
}, {
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99
}, {
"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
}
}
}
接下来我们看一下如何对这个文档进行解析: