-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link to (new) Wikipedia 'JSON Streaming' article #2
Comments
@timbunce under Applications of concatenated JSON I just see a bunch of JSON libraries, what actual applications are using it? I ask because concantenated JSON seems a little silly to me. If you want pretty-printed JSON and you use a streaming JSON parser, why not just stream a big JSON list (you shouldn't need a new format at all) |
Applications isn't a good title for that section. Got a better suggestion?
(By 'list' I assume you don't mean wrapping the objects in a JSON array Concatenated JSON isn't a new format. It's just giving a name to streaming JSON without any delimiter at all:
Does that clarify it? |
Yes, I mean wrapping the objects in a JSON array. Can a streaming JSON parser not give you one element at a time? |
I've changed Applications to Applications and Tools. The need for the artificial A good streaming JSON parser ought to be able to handle concatenated JSON, or be tricked into it by resetting the parser state when each top-level object is completed. |
So to me feels like a hack that's specific to certain json encoders/parsers. If you can't figure out the framing without parsing the content, it's not really framing. |
Also if we're talking about streaming why do we care about having something pretty-printed? That can be handled on the receiving end if someone is interested. If we're talking about a format suitable for editing, it needs to be a complete file anyway, so a big JSON array seems to fit better. |
The stream maybe already pretty-printed and out of the readers control. |
@timbunce yeah, just some real world examples of people using the pretty-printed form. To me pretty-printed concatenated json seems like a really hard format to deal with. |
I don't think people would choose to use that form for data processing if they have a choice. |
I started writing an issue suggesting that you link to the Line Delimited JSON article on wikipedia, and perhaps help to clean it up a little.
The more I looked at it, however, the more I realized that it wasn't as good foundation.
So I ended up writing a new wikipedia article myself: JSON Streaming
I think it's much more informative and balanced (naturally). I'd be grateful if you'd review it and, if you're happy with the content, link to it from jsonlines.org. If you spot something that needs changing or adding, please go ahead and edit the article yourself. In fact doing that anyway, even in some small way, will help the article when the Wikipedians get around to reviewing it.
The text was updated successfully, but these errors were encountered: