Skip to main content
Filter by
Sorted by
Tagged with
1 vote
3 answers
111 views

Assume I have many rows with jsonb data like this in their respective columns: { ..., "participants": { "one_uuid": { "id": "another_uuid", &...
mrivera's user avatar
  • 21
0 votes
1 answer
89 views

I'm trying to return the value of 'id', where value is "India" in nested JSON as shown below { "iterations": [ { "id": "122", "parameters&...
IrshadAli's user avatar
0 votes
2 answers
125 views

I am trying to exclude a field and keeps rest of the fields intact using Goessner JSONPath of com.jayway.jsonpath:json-path:2.9.0 but apparently it is not working. For the following JSON, { "...
Kiran Deep's user avatar
0 votes
1 answer
88 views

I have the following json example { "address_components": [ { "long_name": "43a", "short_name": "43a", ...
Mammt's user avatar
  • 67
0 votes
1 answer
56 views

I have some JSON data from a third-party and I am using JSON Path to transform the data. Below is a sample of the JSON data and the expressions I am trying. { "Traveller": [ { &...
Dev Team's user avatar
0 votes
1 answer
62 views

I am using Newtonsoft.Json and the SelectTokens method of the JObject. I am trying to get only the properties that do not have an empty array as it's value. Here is the current code that I am trying ...
Karl Gardner's user avatar
2 votes
1 answer
73 views

Using JsonPath.Net, is it possible to write a single query that will obtain the values of properties with the same key at different nesting levels? For example, from the following JSON: { "ObjA&...
Cliff Pennalligen's user avatar
0 votes
1 answer
53 views

Considering the following example JSON: { "SH1": { "Locations": [ { "Downstream Device": [ { ...
Cliff Pennalligen's user avatar
0 votes
1 answer
199 views

I have a JSON with the following structure: { "markets": { "US": { "homes": [ { "type": "house&...
Kinsey Bice's user avatar
1 vote
2 answers
221 views

{ "PORT" : { "Ethernet0": { "id": 0 }, "Ethernet1": { "id" : 1 }, "Foo": { &...
Prasad Korhale's user avatar
0 votes
1 answer
20 views

How do I get a particular array element's value whose position keeps changing using NiFi JsonPath Input JSON: { "phones": [ { "type": "H", "...
Sam's user avatar
  • 21
0 votes
0 answers
38 views

i have some data i'm trying to load into a table and im having trouble figuring out the correct path expression to parse it. sample data: {"data": { "2": { "high": 190, ...
Graham Chandler's user avatar
1 vote
1 answer
130 views

Hi I'm struggling to find the JSONPATH expression to get all the JSON object having a specific key including the root JSON object. For example: { "key1": 1, "key2": 2, &...
Nicolas Sitbon's user avatar
0 votes
1 answer
66 views

The question is not about how to convert the response to json, but why did the tests start failing? The controller returns user information using a Java record object @PostMapping("/login") ...
DSG's user avatar
  • 1
0 votes
1 answer
89 views

I want to validate the JSON response of all key value pair except the timestamp which is Dynamics. Either I have to write multiple JSONPath Expression assertions or can achieve this in one assertion? ...
Maddy's user avatar
  • 715
0 votes
1 answer
304 views

I have a JSON structure that may change a key: { "status": "ONLINE", "meter": "A123", "date": "2024-02-28T14:51:12" } OR { "...
kvtral's user avatar
  • 33
2 votes
1 answer
86 views

I have a jsonb saved in a PostgreSQL database that has the structure: { "foo": { "key0": { "bar": "myValueA", }, "key1": { &...
Valentin Vignal's user avatar
0 votes
1 answer
288 views

{ "a": [ { "b": { "c": [ { "id": "123" } ], "d": { "e&...
pavan kumar's user avatar
0 votes
1 answer
53 views

I am new to JSON. I have a LossHistory Json from which I need to filter "LineOfBusinessCode" equal to "General Liab - Excess" from that I need to show specific "Lossyear" ...
Rajesh Senapati's user avatar
0 votes
1 answer
61 views

I have following JSON: { "person": { "id": "5678" }, "result": { "accounts": [ { "id"...
Andy Huang's user avatar
0 votes
1 answer
85 views

I want to extract a token from the the given below JSON response where the key of the token is dynamic. The key 57 is dynamic. it change every time. I know that how to extract value by given key but ...
BhavinD.'s user avatar
  • 481
-1 votes
2 answers
99 views

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, ...
Kushant singh's user avatar
1 vote
1 answer
2k views

I am invoking an AWS Steps orchestration - and one of the contained steps is to invoke an ECS Fargate Task. I currently pass some of the Steps' inputs as the "command" of the ECS Task using ...
Andrew Patterson's user avatar
0 votes
0 answers
261 views

I need to convert a (flat) JSON object to an array of single-member objects: JSON input: { "field1": 123, "field2": 456, "fieldN": 789 } Note that the number of ...
Mathias R. Jessen's user avatar
0 votes
1 answer
112 views

I'm trying to return the full parent object when the url = 'www.fruits.com' Below is the json schema. It's quite tricky { "produce": [ { "type": "fruit", ...
Addison Joseph's user avatar
-1 votes
1 answer
72 views

Simple table in PostgreSQL 12.3 create table aaa(id integer, data json); In data column stores JSON with the following form: {     "foo": 1,     "persons": [         {             ...
JD_UA's user avatar
  • 53
1 vote
1 answer
273 views

I have a JsonNode with the structure: { 'field1': 'value1' 'field2': 'value2' } I want to retrieve 'value1' by specifying a json path: "$.field1". However, instead of getting 'value1', I'm ...
AznBoyStride's user avatar
0 votes
0 answers
261 views

I work on json path and I study the differents functions of this query language. I tried to use the 'append' function to see how far we can go with it and here's my case : { "book": [{ ...
bosskay972's user avatar
  • 1,005
0 votes
0 answers
49 views

How to get values.status value when values.name.value=text from the json. $.values[?(@.name[?(@.language=='EN' && @.value=='test')])].status is giving more than 2 status values {"values&...
Anonymous's user avatar
2 votes
2 answers
1k views

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 == &...
talam's user avatar
  • 33
0 votes
1 answer
162 views

I have data in JSON format and it looks like this: { "book": [{ "category": "reference", "author": "Nigel Rees", "...
Krishna Madhav's user avatar
0 votes
1 answer
1k views

Here's a simplified (and syntactically not correct, because I stripped it) version of a JSON I'm currently dealing with: { "data": { "134001": { "id": 134001, ...
metawops's user avatar
  • 417
0 votes
2 answers
252 views

Let's say I have a JSON like this: { "roles": [ "role1", "role2", "super_role1", "super_role2" ] } And I want to filter with ...
Jeremy D's user avatar
0 votes
2 answers
297 views

I am trying to get the departments id where location is USA in the following JSON { "datapoints": [{ "id": "default.1", "definedBy": ...
parlad's user avatar
  • 1,173
0 votes
1 answer
334 views

Here is a json snippet containing a definition structure : { "Type": "page", "Label": "Test", "Children": { "crud": { "...
Cristof's user avatar
  • 26
2 votes
0 answers
1k views

Let's say I have this JSON: { "toplevel": [ { "testval": "accept", "number": 1 }, { "testval&...
David Ranney's user avatar
0 votes
1 answer
180 views

I have the following json: { "books": [ { "id": 1, "name": "República Brasileira. de Deodoro a Bolsonaro - 2° Edição", ...
user2919910's user avatar
0 votes
0 answers
240 views

Cannot use 'in' operator to search for JSONPath Online Evaluator. Can you you please help me why is throwing error message ? Is it syntax error ?
poovaraj's user avatar
  • 749
0 votes
1 answer
542 views

The data: { token : "xxxx" files: [ { id : 1, deleted: true }, { id : 2, deleted: false }, { id : 3, deleted: false } ] } I ...
Ananda Bhavani Gedela's user avatar
1 vote
1 answer
321 views

JSON { "abc": { "country": [ { "city": "JODHPUR" } ] } } JSONPath Configuration private static final Configuration ...
SRJ's user avatar
  • 2,956
1 vote
2 answers
384 views

I have a model with a JSONField and need to select just the objects that have a certain value somewhere nested in the jsonb. From the Django documentation I understand you can use contains but the ...
Chris Wesseling's user avatar
0 votes
1 answer
160 views

I am working on JSONPath where I need to fetch a value for a particular country below is the given JSON. ` But it is not working. I am expecting to fetch for a particular country like Canada, United ...
Adil Raza's user avatar
0 votes
1 answer
192 views

Is there's a way I could extract the highest id: "15" of bld-appliance-1 using Json Path expression. Currently if use this Json expression "[?(@.name == 'bld-appliance-1')]..id" it ...
Harris's user avatar
  • 185
0 votes
1 answer
401 views

I'm trying to suppress all the exceptions when evaluating a JSON path. but when I upgrade the JSON path lib to 2.7, it seems like it is not working as expected. For example: var node = objectMapper....
5Orange's user avatar
0 votes
1 answer
247 views

I have a json of type: [{ "event": "click", "status": "success", "test": true } , { "event": "send", "...
sashmi's user avatar
  • 169
0 votes
1 answer
1k views

I have my data setup in mysql table in a json column that has nested rows with unique key for each child array. I am using MySQL 8 and tried using json_table function but with no success. Here is the ...
Naveen Chand K's user avatar
0 votes
1 answer
758 views

I have a JSON that structured as below. I am using JSONPath Expression to filter values only. How does one filter and output only those values where the first three characters of those values match ...
Naveen Chand K's user avatar
0 votes
1 answer
245 views

Given the following Json { "id":"MENU_FULL_V2", "version":"MENU_FULL_V2", "type":"MAIN", "icon":"shopping-bag-r&...
Kevin Valdez's user avatar
1 vote
1 answer
340 views

I am creating a Infrastructure-as-Code for a Step Functions Machine. One of these states is of type 'Task' which performs a DynamoUpdateItem on a DynamoDB table. The code looks as following: const ...
DevBob's user avatar
  • 75
0 votes
2 answers
1k views

I am trying to use JSONPath expression to extract 2 arrays and concatenate them today to form a long array - and ideally making them unique. However, no syntax I use in the online playground produces ...
Christian Bongiorno's user avatar