200 questions
0
votes
1
answer
501
views
JSONPath Expression to return objects within an array based on value of a key
I have a JSON Array which contains multiple JSON objects:
[
{
"s3_uri":"s3://fake-s3-bucket/fact_table/fact_table.csv",
"dataset":"fact_table"
...
2
votes
1
answer
2k
views
JSONPath and regex: filter to search end substring
I need to extract "https://www.domain3.com" from this JSON
{
"jobs": [
{
"name": "alfa",
"url": "https://www....
0
votes
0
answers
360
views
Code completion with antlr4-c3: getting recursive scope
I am trying to use the code completion with antlr4-c3.
Suppose that the list of suggestions for the function argument depends on the function's name. So for the following expression
foo(bar(...))
I ...
0
votes
1
answer
156
views
Json query that returns parent element and child data with condition?
I've this JSON (I know it's not a very conventional JSON ;) )
{
"2958114":{"stockOnline": 305 },
"2958113": {"stockOnline": 2},
"2958115": ...
1
vote
1
answer
1k
views
How to filter elements by node key in JSONPath?
What I want
Apply a JSONPath to given json response, to match specific elements by comparing their children's node keys with a value.
Input
{
"data": {
"ticket": {
...
0
votes
1
answer
449
views
JSONPath expression chaining
I'm trying on JSONPath expression on https://jsonpath.com.
I have the following JSON, and I only need the last Order's (tranTxt) Invoice number (invcNr).
So first I filtered out the object where I ...
0
votes
1
answer
523
views
Generate JSONPath based on condition
Json
{
"Id": "1234",
"AValue": {
"qId": "ABCD",
"aType": "DATE",
"value": {
&...
1
vote
1
answer
423
views
Select only the jsonb object keys which are filtered and ordered by values in child object
in postgres 13, I have a Jsonb object and I am able to get only the keys using jsonb_object_keys like this.
SELECT keys from jsonb_object_keys('{
"135": {
"timestamp": ...
1
vote
1
answer
2k
views
Get the root key with jsonb_path_query()
In Postgres 13, for the below query, the jsonb values are getting filtered correctly based on "priority":
SELECT jsonb_path_query(
'{
"100": {
"name": "test&...
0
votes
2
answers
327
views
Is it possible to traverse back in jsonpath output?
For example:
command
kgp -o jsonpath='{range .items[]}{range @.spec.containers[]}{@.name}{"\t"}{.items[].metadata.name}{"\n"}{end}{"\n"}{end}'
output
nginx
istio-proxy
...
0
votes
2
answers
115
views
JsonPath Conditions from another array | JMETER
Using JSONPath I'm trying to fetch pools > id > options > id
based on this condition:
componentGroups > id > poolId = pools > id
"poolId": "cb720883-04f1-4be4-a416-...
1
vote
1
answer
1k
views
Extracting a JSON out of a string using JSONPath
I have Json data as follows:
{
"template" : [
"{
"Id": "abc"
}"
]
}
I am using JSONPath to extract data from the Json above. I would ...
2
votes
1
answer
3k
views
How to use a csv with header for sagemaker batch transform?
I am performing a sagemaker batch transform using a transformer created out of an xgboost estimator. The csv input for prediction/batch transform has both, an ID column and a header (with names of ...
1
vote
2
answers
1k
views
JSONPath getting Error when square brackets inside of string
kI have a problem with the library https://github.com/JSONPath-Plus/JSONPath at the latest version.
Example:
{
"firstName": "John",
"lastName": "doe",
...
2
votes
2
answers
1k
views
JsonPath: get root element depending on first level sub-element
I need all elements (including "id" and all attributes) of the json sample below where "type" has the value "state_machine_state", but only if "type" is on the ...
1
vote
1
answer
1k
views
use the results of a Query in JSON_EXTRACT or JSON_VALUE
Hi I don't know if this is possible, but I have some data in MySQL in the following structure :
{"LinkId": "q1", "Answer": "Yes"},{"LinkId": "q2&...
0
votes
1
answer
468
views
Jmeter - How to get nested object in json with multiple object
I have this json:
{
"deviceId": "deviceCustom",
"moduleId": "custom",
"properties": {
"desired": {
"...
5
votes
2
answers
18k
views
JsonPath - Filter Array and get only the first element
Im trying to filter the elements of this JSON array to return only the first element it will find.
{
"elements": [{
"urn": "urn:li:lyndaCourse:189800",
...
1
vote
2
answers
499
views
jsonpath-plus prblem with key that start with @ character
I am using jsonpath-plus 6.01.
I have following JSON:
{
"Request": {
"@Domain": "SomeDomain",
"Vehicle": {
"@ID": "E11XPD"
...
0
votes
2
answers
400
views
RestAssured JsonPath: Issue with getting data from json?
I need to know how to get this output -
JSON DOC - { "status": "E000", "customerId": "VjAxI2VhNzg5ZmJlLWIyNjAtNGZlOS1iZDNkLTdjMmU1MjA2ZmVhZA", "merchantId&...
1
vote
1
answer
684
views
Is it possible to get all the paths of json strings stored in an SQL column
Say I have a JSON data stored in a varchar(max) column in a database. Is it possible to use SQL to get all the JSON paths present in that data. For example for the following JSON:
{
"dog"...
0
votes
0
answers
3k
views
How to filter an array of objects using multiple conditions in JSONPATH?
I am using jsonpath library (https://github.com/json-path/JsonPath) in Go, and I need to process a JSON object and filter from an array of objects, the objects which match any of the multiple criteria ...
1
vote
1
answer
725
views
is there a way to sequentialize jsonpath search results in python
I have a very heavily nested json file with multiple blocks inside it.
The following is an excerpt of the file, It has more than 6 levels of nesting like that
{
"title": "main ...
0
votes
2
answers
3k
views
JSONPath Export Key & Value
I am using JSONPath to filter out a json file, I am trying to retrieve both the Key + Value from the JSON array but I am lost at figuring how best to do this.
QUERY
$.phoneNumbers[*].[type,number]
...
0
votes
1
answer
102
views
I want to know how to get Test1 value using Jsonpath
I want to know the value of "Test1" whose "createdTs" value is greater than or equal to 444.
[
{
"raw" : {
"Test1":"Apple",
"Test2":{
"createdTs": ...