evaluate jsonpath expression for the example
{ "a": [ { "b": { "c": [ { "id": "123" } ], "d": { "e": { "f": [ { "name": "abc", "type": "in" }, { "name": "xyz", "type": "out" } ] } } } }, { "b": { "c":…
{ "a": [ { "b": { "c": [ { "id": "123" } ], "d": { "e": { "f": [ { "name": "abc", "type": "in" }, { "name": "xyz", "type": "out" } ] } } } }, { "b": { "c":…
Hi I am looking to construct a jsonpath expression to find the array element that matches the filter on a child. Please find details below Json { "items": [ { "id": 1, "children": [ {"id": 101, "name": "Child1"}, {"id": 102,…
How can I use a parameter within a JSONPath expression in a PostgreSQL SQL query? I want to query something like this: SELECT * FROM table WHERE jsondata @@ '$.pathto.array[*].** ? (@.someproperty == ":VALUE").anotherproperty != null'; I tried: SELECT *…
For example: command kgp -o jsonpath='{range .items[]}{range @.spec.containers[]}{@.name}{"t"}{.items[].metadata.name}{"n"}{end}{"n"}{end}' output nginx istio-proxy sidecar-1 expected output nginx default istio-proxy default sidecar-1 default