Is there such a JSON parser?
Steven Schveighoffer
schveiguy at gmail.com
Mon Jan 2 21:36:10 UTC 2023
On 1/1/23 6:28 PM, torhu wrote:
> I need to parse some JSON data into various data structures, so I'm
> looking for a parser based on events or ranges. One that doesn't just
> load the file and build a data structure that represents the whole
> thing. So not std.json, at least.
It's pretty rough-edged, but https://code.dlang.org/packages/jsoniopipe
will do this. It has mechanisms to jump to specific object members, and
to rewind to a cached point. It does not use any intermediate
representation.
-Steve
More information about the Digitalmars-d-learn
mailing list