jsonlines icon indicating copy to clipboard operation
jsonlines copied to clipboard

bad example

Open nathanneuro opened this issue 1 year ago • 1 comments

I think presenting an example of jsonlines where you have a 'technically acceptable' example of a csv style jsonlines is a bad idea. The main advantage of jsonlines is that each line is independent, there is no 'special first line'. So you can split the file, or read a stream, and have it still make sense. If you have the first line be 'column names', and every line after that be a list of column values, you've given up the main advantage of using jsonlines. Since that's an edge case which is a bad use of jsonlines, seems incorrect to have it as an example on a site trying to explain to people how to use jsonlines.

["Name", "Session", "Score", "Completed"] ["Gilbert", "2013", 24, true] ["Alexa", "2013", 29, true] ["May", "2012B", 14, false] ["Deloise", "2012A", 19, true]

nathanneuro avatar Apr 02 '24 19:04 nathanneuro

It's a good point. PRs welcome.

wardi avatar Apr 02 '24 19:04 wardi