You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm sure that this is user error from me, but I'm stuck trying to perform the following:
JSON data is as shown below, and I am trying to return only the first record on the basis that I do not want to return records that have a key "type" defined.
I have tried with the following jsonpath_query = "$[?(@['name']=='foo'&@['data'][0]['value'] == 'bar'&@['data'][0]['type'])]" as a basis, but I want to exclude the records rather than include them. e.g. not(@['data'][0]['type'])
Is this possible with jsonpath-ng or must I first match all the data records, and then filter out those records with a "type" field? e.g.
Hi, I'm sure that this is user error from me, but I'm stuck trying to perform the following:
JSON data is as shown below, and I am trying to return only the first record on the basis that I do not want to return records that have a key "type" defined.
I have tried with the following
jsonpath_query = "$[?(@['name']=='foo'&@['data'][0]['value'] == 'bar'&@['data'][0]['type'])]"
as a basis, but I want to exclude the records rather than include them. e.g.not(@['data'][0]['type'])
Is this possible with jsonpath-ng or must I first match all the data records, and then filter out those records with a "type" field? e.g.
Many thanks.
The text was updated successfully, but these errors were encountered: