Hello,
i have the following JSON File (which cannot changed).
===SAMPLE===
[
{
"<status>": "online",
"href": "/api/service/v1/services/ad",
"name": "ad",
"log": {
"href": "/api/log/v1/logs/appliance-kit-adstat:default",
"size": 91
}
}
]
===END===
I want to extract the status in preprocessing step but get a error that the syntax is invalid. The same syntax works for href key.
So
$[?(@.name=="ad")].href
works without problem, but
$[?(@.name=="ad")].<status> raise a error and the item become unsupportet
Its clear for me, that the <> signs may here the problem, but the question is how to workaround the problem?
regards
Peter
i have the following JSON File (which cannot changed).
===SAMPLE===
[
{
"<status>": "online",
"href": "/api/service/v1/services/ad",
"name": "ad",
"log": {
"href": "/api/log/v1/logs/appliance-kit-adstat:default",
"size": 91
}
}
]
===END===
I want to extract the status in preprocessing step but get a error that the syntax is invalid. The same syntax works for href key.
So
$[?(@.name=="ad")].href
works without problem, but
$[?(@.name=="ad")].<status> raise a error and the item become unsupportet
Its clear for me, that the <> signs may here the problem, but the question is how to workaround the problem?
regards
Peter