About 962,000 results
Open links in new tab
  1. json - How to filter by string in JSONPath? - Stack Overflow

    I didn't find find the correct jsonpath filter syntax to extract a value from a name-value pair in json. Here's the syntax and an abbreviated sample twitter document below. This site was useful for …

  2. Getting a single value from a JSON object using JSONPath

    jsonpath returns an object of net.minidev.json.JSONArray.JSONArray from the read method. This class has size() and get(int) methods which can be used to retrieve specific values. The below …

  3. JsonPath AND Operator on Array - Stack Overflow

    May 31, 2018 · As far as I know AND / OR are not supported yet. But you can get relatively close with this [,] array. But even this made me wonder when I tested it. There's some strange …

  4. JsonPath - Filter Array and get only the first element

    Mar 29, 2022 · With the above JSONPATH you will have all items which type is "LIBRARY" (in your example will return 2 items). You mentioned you need only the first one of the filtered …

  5. json - OR operator in JSONPath? - Stack Overflow

    [,] - Union operator in XPath results in a combination of node sets. JSONPath allows alternate names or array indices as a set. Try $..log[?(@.severity == 'WARN'), ?(@.severity == 'Error')] …

  6. JSONPath to get multiple values from nested json

    Apr 21, 2022 · The basic issue is that JSONPath is a selection language. It can select any of the items that are in your JSON, and it will give you a list of matches, such as ["assignee_1", …

  7. json - Basic use of JSONPath in Java - Stack Overflow

    Java JsonPath API found at jayway JsonPath might have changed a little since all the above answers/comments. Documentation too. Documentation too. Just follow the above link and …

  8. Jsonpath for nested JSON objects - Stack Overflow

    jsonpath can be used to select values for given expressions and - in some implementations - for customised predicates but it does not support projections. You can use jsonpath to filter your …

  9. jsonpath - Get keys in JSON - Stack Overflow

    Now I want to display all keys and all values by using JSONPath. So I am looking for something to get key1, key2 and key3 as a result. Additionally I would like to use the index of a property, e. …

  10. Parse JSON array file with JSONPATH - Stack Overflow

    JSONPath expression for an array of multiple arrays Hot Network Questions The "Lehman Corporate Bond Database distributed by Warga (1998)" cited in papers