Top "Jsonpath" questions

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

Find object in nested data by property value (with JSONPath)

I have this test data: [ { id: 1, l: 'a', sub: [ ] }, { id: 2, l: 'b', sub: [ { id: 4, l: 'd' }, { id: 5, l: 'e' }, { id: 6, …

javascript jsonpath
Using Gson with a path

Using a simple Json file e.g: {"menu": { "id": "file", "value": "File", "popup": { "menuitem": [ {"value": "New", "onclick": "CreateNewDoc()"}, {"value": "Open", "…

java json gson jsonpath
How to save content of a configmap to a file with kubectl and jsonpath?

I'm trying to save the contents of a configmap to a file on my local hard drive. Kubectl supports selecting …

kubernetes jsonpath kubectl configmap
Spring testing and JsonPath probblem

I am having an issue with testing and json path I am just trying to perform a simple test and …

spring-mvc jsonpath
Check Map key/values with jsonPath

I'm testing a controller that returns a Map @RequestMapping("/") @ResponseBody public Map<String, String> getMessages(@RequestBody String foo) { …

java jsonpath mockmvc
Jsonpath for nested JSON objects

I have a JSON with nested fields: [ { "Platform Parent Dato Id": "23768", "Platform Dato Id": "24138", "Platform Dato Name": "Random Europe", "Platform …

json jsonpath
JSONPath or other XPath like utility for JSON/Javascript; or Jquery JSON

I have been looking at JSONPath and though it seems pretty well done, I wonder if anyone has worked with …

javascript jquery json jsonpath
How to find last element in Array list using jsonpath expression?

I have json string like below [ { "topic": "inputTopic", "key": "0", "message": "test", "partition": 0, "offset": 0 }, { "topic": "inputTopic", "key": "0", "message": "test", "partition": 0, "offset": 1 }, { "…

jsonpath
Testing jsonpath that array contains specfic objects in any order

I'm testing a Spring controller which can give back a 400 with field errors. These field errors is an array of …

spring spring-mvc spring-test jsonpath
Testing with spring-test-mvc jsonpath returns null

I am using Spring's "spring-test-mvc" library to test web controllers. I have a very simple controller that returns a JSON …

spring mockito spring-test jsonpath spring-test-mvc