Skip to content

[Feature Request] Support for parsing a sequence of JSON blobs #204

@akvadrako

Description

@akvadrako

I am using orjson through most of my app, but there is one place where I end up having to use the stdlib json parser and that's when I'm consuming a sequence of blobs, like this:

{"x": 1}
{"y": 2}

This is because the stdlib decoder.raw_decode() method returns the parsed object and an index, which indicates the last byte of the input data that was read. This allows the parser to be run again on the remaining data in the input.

Would it be possible to add something like the index return value to orjson?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions