Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang
by francoisllm on Sunday May 20, 2018 @11:58AM
(#17113311)
It's actually the next milestone, a generator for structs, maps and slices. Until now the goal was to make it ready for some high traffic services in production. These traffic receive JSON with chinese, vietnamese character so we needed to make sure it works well first (boilerplate was not an issue).
Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang
by anothergoogler on Sunday May 20, 2018 @01:07PM
(#17113719)
Go is pretty good about Unicode, did you run into issues with Chinese and Vietnamese with standard encoding/json package or with other third-party Go JSON libraries?
Re:Show HN: Gojay – Performant JSON encoder/decoder for Golang
by francoispqr on Monday May 28, 2018 @12:56AM
(#17170666)
Nope, it's quite easy to integrate unicode parsing :) just need to check for "\u1234" strings in JSON as it is valid, also need to check for utf16 surrogates. Standard package does it already just had to implement it in Gojay.
So far we’ve used https://github.com/mailru/easyjson for that, but the code generation step is unbelievably slow - multiple minutes for about 100 structs.