pydantic / jiter

Fast iterable JSON parser.
https://crates.io/crates/jiter
MIT License
182 stars 11 forks source link

[feature] Support extended json #90

Open 1aam2am1 opened 3 months ago

1aam2am1 commented 3 months ago

Hi, I would like to request a extension to json support:

As for example these jsons are valid for flatbuffer complier https://flatbuffers.dev/flatbuffers_guide_writing_schema.html#autotoc_md29

And pydantic would be great for batch processing of such JSON configurations.

davidhewitt commented 3 months ago

As per #91 I think comment support is straightforward subject to performance impact.

For the enum values, that's a much more complicated / interesting idea which would have a strong interaction with pydantic-core. I'm open to someone exploring this idea, but it's a much bigger feature request and would have questions all the way up to the pydantic main API (as I assume users would want to be able to configure this).