I am using "com.jayway.jsonpath" % "json-path" % "2.7.0" for parsing an incoming json message in our API build on akka-http written in scala. The inco ...
I am using "com.jayway.jsonpath" % "json-path" % "2.7.0" for parsing an incoming json message in our API build on akka-http written in scala. The inco ...
I have the following JSON: I would like to extract the value $.A.C.date if it is not null, else I would like to extract $.B.D.date. Basically I wo ...
I am trying to check the given input string is present in a json array. Below is my sample json Let say i am trying to find a given input name is p ...
I want to read objects from the main array filtering by refPath using JsonPath Jayway Java implementation. My input looks like this: and I want to ...
I have this JSON response: and I am trying to concatenate the first name and the last name. I have tried to do this: but it returns me an empty ...
I'm trying to modify this JSON to remove key values except "url" from an array object of attachment. Json Path version I'm using: 2.7.0 { "fields" ...
I am using JsonPath from jayway for reading the JSON object. But whenever there is a concatenation operation it give me the cached value, below is th ...
I'd like to use the "Normalized path expressions" option to Jayway JsonPath, as illustrated by this example. The documentation for JsonPath shows this ...
I have a json as below. I want to select list reference of item which has method is "method A". But I cannot query with operator == (with Jayway JSONP ...
I have following JSON, I need to get the personEmailContact which has a matching emailID with emailupdaterequest.emailContact. I tried to write the ex ...
With the following json: What would be the jsonpath to return the list of the elements containing at least an id from the list ['A','C']? I can ge ...
I've a requirement to fetch value from json using jayway jsonpath. Json structure looks like below my requirement is in the values array if the na ...
With the following json: What would be the jsonpath to return the value one when asking for the id A? As per https://stackoverflow.com/a/47576707 ...
Service A returning response as gson.JsonObject. From Service B calling Service A with Feign Client. How to handle response? Tried below: Nothing w ...
I have a json as below. I want a json path expression that checks if [e3] exists in the below json. Can someone help please? ...
I'm trying to use JSONPath (Jayway implementation), to get objects that contains a values array, that contains at least 1 non empty value. This is a s ...
I want to make tests for create and update APIs in Spring Boot: But I have this error java.lang.AssertionError: No value at JSON path "$[10].id ...
in this case, how to get age greater than 10? sample code: ...
I have a json as below Now i want to filter the json based on two attributes. for example: $.store.book[?((@.category,@.version) in [('fiction',2) ...
I have a JSON and a list of jsonPath strings. I want to remove everything from the JSON and only retain the list of jsonPaths I have. I am using Jaywa ...