|
I wonder, why even bother with wrapping rows in array brackets and not do it implicitly. ["Name", "Session", "Score", "Completed"]
["Gilbert", "2013", 24, true]
would be "Name", "Session", "Score", "Completed"
"Gilbert", "2013", 24, true
Which is, well, more or less just CSV.
This should work with objects too: "name": "Jane", "key": { "nested": "object" }, "foo": ["bar"]
Or mixed: "Foo", { "fnord": 23 }, true
|
For the above to work you'd have to use a custom JSON-parser when reading the lines.
------------
Could also be mentioned that JSONLines-like formats are already pretty common in log-files, database exports etc. So this is more about giving it a name and standardizing it. Which I think is great!