问题描述
我可以使用JsonPath按字符串过滤后得到反映结果的整个json吗?
- 在JSON之前
{
"store": {
"book": [
{
"category": "reference","author": "Nigel Rees","title": "Sayings of the Century","price": 8.95
},{
"category": "fiction","author": "Evelyn Waugh","title": "Sword of Honour","price": 12.99
}
],"bicycle": {
"color": "red","price": 19.95
}
},"expensive": 10
}
- 在JSON之后(我想要这个结果)
{
"store": {
"book": [
{
"category": "reference","price": 8.95
}
],"expensive": 10
}
通过字符串对图书进行过滤是通过'$ .. book [?(@。author =〜/.* REES / i)]'
但是您能告诉我让整个JSON反映出来吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)