在修改Heroku app之后,我无法找到允许我对两者进行过滤的以下JSON对象的JSONPath表达式
Log.Transaction.BusinessUnit.Country
和
Log.Transaction.InventoryControlTransaction.InventoryAdjustment.ItemCounts[*].Quantity
JSONPath是否支持在JSON结构中每个路径处于不同级别的多个路径上进行过滤?如果是这样,我应该使用什么表达式?
{
"Log":{
"Transaction":{
"BusinessUnit":{
"Brand":"Acme",
"UnitID":"1234",
"LocationCode":"1234",
"Country":"USA",
"LocationType":"Store"
},
"BeginDateTime":"2016-07-28T07:30:00.333",
"InventoryControlTransaction":{
"InventoryAdjustment":{
"Reason":"Update",
"ItemCounts":[
{
"Item":{
"ID":"00000000"
},
"Quantity":{
"Quantity":0,
"Type":"Foo"
}
}
]
}
}
}
}
}
编辑:更改"交易"字段到" Log"为清楚起见