200 questions
1
vote
3
answers
97
views
SELECT jsonb data based on specific children values/properties
Assume I have many rows with jsonb data like this in their respective columns:
{
...,
"participants": {
"one_uuid": {
"id": "another_uuid",
&...
0
votes
2
answers
115
views
jayway.jsonpath:json-path is failing to filter objects with !=
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,
{
"...
0
votes
1
answer
47
views
Struggling to define JSON Path for an object which can also be an array
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": [
{
&...
2
votes
1
answer
73
views
JsonPath.Net - use query to flatten data structure
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&...
0
votes
1
answer
186
views
JSONPath with multiple filter expressions
I have a JSON with the following structure:
{
"markets": {
"US": {
"homes": [
{
"type": "house&...
0
votes
1
answer
20
views
How do I get a particular array element's value whose position keeps changing using NiFi JsonPath
How do I get a particular array element's value whose position keeps changing using NiFi JsonPath
Input JSON:
{
"phones": [
{
"type": "H",
"...
1
vote
1
answer
130
views
get JSON object having specific key including root JSON object
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,
&...
0
votes
1
answer
80
views
How to ignore the dynamic value in the JSONPath Expression of SoapUI while only validate against the rest complete payload?
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?
...
2
votes
1
answer
86
views
How to accept any key in jsonb path?
I have a jsonb saved in a PostgreSQL database that has the structure:
{
"foo": {
"key0": {
"bar": "myValueA",
},
"key1": {
&...
0
votes
1
answer
53
views
Unable to find json path from an array
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"
...
0
votes
1
answer
81
views
How to get value from the json response where a key is dynamic in Jmeter
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 ...
1
vote
1
answer
2k
views
Combining JsonPath listAt and stringAt to make a single array in AWS Steps/CDK
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 ...
0
votes
1
answer
111
views
JsonPath Conditionals Nested Two Arrays Deep
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",
...
1
vote
1
answer
268
views
JsonPath read returns path instead of value
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 ...
0
votes
0
answers
49
views
JsonPath query/expression
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&...
0
votes
1
answer
161
views
How to extract values from JSON using JSONPath expression
I have data in JSON format and it looks like this:
{
"book": [{
"category": "reference",
"author": "Nigel Rees",
"...
0
votes
2
answers
244
views
JSONPath find in list
Let's say I have a JSON like this:
{
"roles": [
"role1",
"role2",
"super_role1",
"super_role2"
]
}
And I want to filter with ...
0
votes
1
answer
327
views
In JSONPath, how to find keys matching a 'non existing' filter?
Here is a json snippet containing a definition structure :
{
"Type": "page",
"Label": "Test",
"Children": {
"crud": {
"...
0
votes
1
answer
174
views
JSONPath expression to find books having author name
I have the following json:
{
"books": [
{
"id": 1,
"name": "República Brasileira. de Deodoro a Bolsonaro - 2° Edição",
...
0
votes
1
answer
535
views
How can we get the last element of the filtered json records with json path
The data:
{
token : "xxxx"
files: [
{
id : 1,
deleted: true
},
{
id : 2,
deleted: false
},
{
id : 3,
deleted: false
}
]
}
I ...
1
vote
2
answers
376
views
Can I use a jsonpath predicate in a filter?
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 ...
0
votes
1
answer
183
views
Extracting Json response using Json extractor on Jmeter
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 ...
0
votes
1
answer
247
views
How to use multiple fields to evaluate a condition using JSONPath expresstion
I have a json of type:
[{
"event": "click",
"status": "success",
"test": true
}
,
{
"event": "send",
"...
0
votes
1
answer
742
views
Filter and output values in JSONPath Expression that begins with given characters
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 ...
1
vote
1
answer
340
views
What counts as an object vs a string in Typescript?
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 ...