Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
packetlost
· 2y ago · 0 comments
JSON isn't streamable. Neither is CBOR for that matter, though it's not quite as bad.
Comments
[–]
superb_dev
2y ago
Individual JSON records are streamable
[–]
packetlost
OP
2y ago
JSON itself, no, that's not the case. If you accept an extension like JSON Lines, it can be. Many decoders will barf if you have multiple top level objects in the same file. If you want portable, non-ephemeral data JSON Lines is a poor choice.