It is not JSON at that point - and if you want a JSON compatible format 
that compresses, well, there are dozens of them - some just elide the 
keynames, others include compression of the data elements as well. Here is 
an article discussing a lot of 
them: 
https://www.lucidchart.com/techblog/2019/12/06/json-compression-alternative-binary-formats-and-compression-methods/

Many of them have Go-language implementations.

On Monday, January 4, 2021 at 1:09:44 PM UTC-6 ChrisLu wrote:

> Hi,
>
> For a list of json objects, the key names are usually repeated.
> e.g., {aaaa:1, bbbb:2},{aaaa:2, bbbb:3}, ...
>
> The key names, "aaaa" and "bbbb" for the above example, could be very long.
> Is there any existing library already encode json objects via a dictionary?
>
> This is a JSON-specific compression. Would be good to see the compression 
> ratio compared to gzip, which has a general dictionary encoding.
>
> Chris
> ----------
> https://github.com/chrislusf/seaweedfs
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/37f93d1e-3f85-4672-9aba-c262af30a7ecn%40googlegroups.com.

Reply via email to