Comment by WorldMaker

Comment by WorldMaker 2 days ago

3 replies

Instead of inventing some new delimited formats, we also already have nearly ubiquitous interchange formats like JSON. If you wanted to reduce the in memory footprint versus plaintext encoding the JSON there are good options like BSON and CBOR.

packetlost a day ago

JSON isn't streamable. Neither is CBOR for that matter, though it's not quite as bad.

  • superb_dev a day ago

    Individual JSON records are streamable

    • packetlost 18 hours 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.