jqlang / jq

Command-line JSON processor
https://jqlang.github.io/jq/
Other
29.98k stars 1.55k forks source link

Feature request: Smile format #95

Closed Downchuck closed 11 years ago

Downchuck commented 11 years ago

Binary JSON format: http://wiki.fasterxml.com/SmileFormatSpec

stedolan commented 11 years ago

I don't intend to implement binary support for jq until a clear, stable winner emerges out of BSON, UBJSON, Smile, etc.

For the moment, gzipped json is reasonably fast and tends to be smaller than most of the specialised binary formats.

nicowilliams commented 11 years ago

One could always pipe jq's output to a JSON-to-BSON encoder...

cowtowncoder commented 11 years ago

Waiting for "winner" will be a long and arduous process, so this might as well be marked as "probably never". There has not been much convergence in this area.

Gzipping will indeed always be more compact than binary variant, but the expected benefits for binary JSON variants are typically more with combination of faster and more compact than JSON (with exception of BSON which is commonly not more compact).