Hacker News new | ask | show | jobs
by sheeeep86 1282 days ago
You could have the advantages of both worlds by having one json object per line. You could stream process, and you could structure more complex objects and have consistent escaping.
3 comments

You could do that, you could also have a json that is not streamable. You can't guarantee how large a json object will be but you can guess that the csv will probable be.
and the "redundant" headers will get compressed away to nearly nothing over most transports.