Top "Jsonpath" questions

JSONPath is a means of using XPath-like syntax to query JSON structures.

Extracting a subset of attributes with JSONPath

I have this JSON code: { "A": { "AB": [{ "ABA": "0", "ABB": "1", "ABC": "2" }] } } I need to use a JSONPath expression that returns that …

json jsonpath
How to change values in a json file using XPath/JsonPath in java

here is the json file { "session": { "name":"JSESSIONID", "value":"5864FD56A1F84D5B0233E641B5D63B52" }, "loginInfo": { "loginCount":77, "…

java json xpath jackson jsonpath
JSON.NET JObject - how do I get value from this nested JSON structure

I have this JSON: { "client_id": "26075235", "client_version": "1.0.0", "event": "app.uninstall", "timestamp": 1478741247, "data": { "user_id": "62581379", "site_id": "837771289247593785", "platform_app_id": "26075235" } } …

c# json json.net jsonpath jpath
OR operator in JSONPath?

Using a single JSONPath expression alone, is it possible to do some kind of 'OR' or '||' operator. For …

json jsonpath
Request body matching in WireMock (not JSON/XML)

I am trying to create a API mock with standalone wiremock. The response body depends upon an attribute in the …

json mocking jsonpath wiremock
Matching data in JsonPath with wiremock

I'm trying to create mocks for my login procedure. I use POST method with a couple of fields and login …

json jsonpath wiremock
How to find node exists in JSON

I have following JSON {"subscription": { "callbackReference": "xyz" , "criteria": "Vote", "destinationAddress": "3456" , "notificationFormat" : "JSON" } } I want to check whether "notificationFormat" elements exits …

json jsonpath
How do I get a list of all JSON paths to values from a JSON String?

My goal is to read a JSON file and understand the location of all the values, so that when I …

java json hashmap jsonpath
JsonPath: How to check if a field has some value or not through JsonPath?

I am finding it a little difficult to understand how to write a jsonpath that will tell me whether there …

json jsonpath
JsonPath : filter by value in array

I'm trying to filter by value an array in my Json with Jsonpath. I want to get the long_name …

java json jsonpath