JsonSurfer icon indicating copy to clipboard operation
JsonSurfer copied to clipboard

Parsing JSON Sequence

Open sigurd-cp opened this issue 1 year ago • 2 comments

Hi,

For parsing a JSON Sequence, I don't find a JSON path, that parses the objects.

Lets say there is a JSON Sequence {"abc":123}{"xy":"value"}

With JSON path $[*] or $* I got only 123 and value.

Is there a way to parse the sequence?

Best Sigurd

sigurd-cp avatar Feb 06 '24 10:02 sigurd-cp

the path should parse a array of object: [{"abc":123},{"xy":"value"}]

wanglingsong avatar Feb 06 '24 12:02 wanglingsong

Thanks for your fast response. Arrays working pretty fine. In JSON Streaming approaches, array brackets and commas could be problematic, therefore there are JSON variants, that just use concatenated JSON objects. see Concatenated JSON in https://en.wikipedia.org/wiki/JSON_streaming I'm currently searching for an option to parse such files with JsonSurfer.

sigurd-cp avatar Feb 06 '24 12:02 sigurd-cp