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

Why maintain parser and validate separately? #92

Closed GGXXLL closed 1 year ago

GGXXLL commented 1 year ago

More often than not, we need to parse Json. So when parsing, we can simply return an invalid error if the json is invalid. Separate maintenance has created some problems: