JSON is such a counter-intuitive wire format. Encode your large 32-bit integers as hex strings, and the wire size decreases!
Conversation
Replying to
If you were building the next next gzip, wonder what you could gain special-casing JSON (numbers become binary etc.) or XMLish syntax or whatever while still accepting any input and expanding back to the original bytes
1
1
2
(I mean, the existing next gzips are fine, saying this as idle curiosity not serious proposal.)
1
1
Brotli has a standard static dictionary based on web content and is the modern transparent compression algorithm for browsers.
WOFF2 font compression uses Brotli with content aware pre-processing / coding to substantially improve compression over WOFF1:
w3.org/TR/WOFF2/
2
2
Static dictionary is in rather small role in Brotli's improvements over gzip and other methods. Context modeling and entropy code switching are more important.
1
I was responding to twitter.com/rf/status/1263 specifically about how Brotli's static dictionary is a similar concept and WOFF2 pre-processing before Brotli compression is pretty much exactly that. Special-casing general purpose compression schemes for certain cases is widely used.



