valyala / fastjson

Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection
MIT License
2.3k stars 138 forks source link

Streaming reflective JSON encoder #59

Open x4m opened 4 years ago

x4m commented 4 years ago

Hi! I'm coping with OOMs in https://github.com/wal-g/wal-g/issues/738 And looking for good JSON lib so that we could avoid materializing JSON in memory. But the code is shared among many different types of JSON, so I do not want to use precompiled JSON encoder and want reflective one. I see that fastjson is mostly about parsing. But maybe you have some ideas where to look at?