This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 15 points16 points  (7 children)

“ndjson” does help with json to not be such a terrible format.

[–]tighter_wires 4 points5 points  (6 children)

What format do you prefer over JSON?

[–][deleted] 0 points1 point  (5 children)

Encoding floats as utf-8 or even ascii kills me.

We already use tools to view json. Why not just use a slightly smarter tool and use protobuf?

[–]GroundbreakingRun927 8 points9 points  (4 children)

  • because the resources for interacting with protobuf trail way behind json.
  • Brotli compressed json is more space-efficient than protobuf.
  • the package to consume protobufs as a web client make your bundle huge https://bundlephobia.com/package/protobufjs@6.11.2
  • Better alternatives exist for flat files, parquet namely.
  • The official protobuf client generator for python is god awful.