Questions tagged [jpath]

JSONPath expressions always refer to a JSON structure in the same way as XPath expression are used in combination with an XML document. Since a JSON structure is usually anonymous and doesn't necessarily have a "root member object" JSONPath assumes the abstract name $ assigned to the outer level object. JSONPath expressions can use the dot–notation $.store.book[0].title or the bracket–notation $['store']['book'][0]['title']

19 questions
0
votes
0 answers

Is there a XPath with schema equivilent for JSON?

Is there a library that provides a way to query JSON that is similar to XPath with a schema? I say with a Schema because we want typed queries both for the filtering (inequalities on dates) and the returned values. We need this on Java and would…
David Thielen
  • 28,723
  • 34
  • 119
  • 193
0
votes
1 answer

JsonPath with JsonTextReader: Token at a Time

I am having an issue with JsonPath working differently when loading token (.Load) at a time using JsonTextReader versus loading the entire JSON using ReadFrom. Here is an example: JSON: Path="[*].person" Method=SelectTokens(path) [ { …
Steven Mayer
  • 641
  • 1
  • 6
  • 19
-1
votes
2 answers

How to escape special characters programmatically while reading json in C#?

In the json message, I have a field Name which can have a various combination of different special characters. Due to special characters, when I filter this property I get an error: Unexpected character while parsing path query: ! Value of this…
SKN
  • 520
  • 1
  • 5
  • 20
-2
votes
1 answer

Parse only particular fields in JSON at once

I have a huge JSON but I only need to parse specific fields. I know paths to these fields so I decided to try JPath and it works but I want to parse all fields at once. Let's say I have such JSON: { "data": [ { "field1": 1, …
user23
  • 21
  • 6
1
2