JSONPath で何かをするのに少し問題があります。これは私が持っているものです:
[
{
"id": {
"type": "literal",
"value": "123456789",
"datatype": "http://www.w3.org/2001/XMLSchema#string"
},
"name": {
"type": "literal",
"value": "John Doe",
"datatype": "http://www.w3.org/2001/XMLSchema#string"
}
},
{
"id": {
"type": "literal",
"value": "2123456789",
"datatype": "http://www.w3.org/2001/XMLSchema#string"
},
"name": {
"type": "literal",
"value": "Jane Doe",
"datatype": "http://www.w3.org/2001/XMLSchema#string"
}
}
] } ]
そして、パターンを適用した後に取得したいのは次のとおりです。
[
{
"id": "123456789",
"name": "John Doe"
},
{
"id": "2123456789",
"name": "Jane Doe"
}
]
これは可能ですか?私がやっている最善のことは["123456789", "John Doe","2123456789","Jane Doe"]
パターンはどのように見えるべきですか?