3 ms·
What about JSON vs protobufs? Is there a schemaless system that you use?
by drudru11 7y ago
What about JSON vs protobufs? Is there a schemaless system that you use?
- groestl 7y agoAFAIK protobufs are not schema-less.
- drudru11 7y agoYeah, those sentences are too close together. I'm trying to elicit more of a response from the comment author. I think they make some good points. I would like to learn more about their ideal system.
- natermer 7y agoIf GNU decided tomorrow that all utilities need to have a --json output argument then that would make me a very happy person.
- pmarreck 7y agoThat still limits us too much due to the rather severely limited available data types (although arbitrary types could be serialized into binary/string data, I guess...)
- drudru11 7y agoFunny that you should mention this. I just hit that problem yesterday. The lack of a binary type is a problem. This is the same thing that hit XML. Unfortunately (or fortunately), the best solution is still the MIME stuff.
- dTal 7y agoBetter than nothing, but the problem with that is that you can't construct a deep, lazily evaluated pipeline. JSON can't be outputted until all the data is collected.
- chocolateboy 7y agoThere's a streaming format which is used for this: JSON Lines [1] AKA newline-delimited JSON [2]. [1] http://jsonlines.org/ http://jsonlines.org/ [2] http://ndjson.org/ http://ndjson.org/