Skip to content

json-cat support (aka lax JSON lines support) #89

@samuelcolvin

Description

@samuelcolvin

I just made it up, but it's a superset of JSON lines that ignores whitespace and instead just parses concatenated JSON things. source of idea

So the following would be valid:

{
  "foo": 1,
  "bar": 2
}
{"spam":  4}{"eggs": 5}["ham"]

Advantages:

  • more expressive (each item can be pretty)
  • tiny space saving - if you choose not to insert the newlines
  • it should be easier for jiter to support - the actual JSON parsing logic doesn't need to change at all as far as I know
  • json-lines should be valid json-cat

I really don't think there's much more to it than that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions