valyala / fastjson

Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Idiomatic Guide to migrating from `json.NewDecoder(<bytes>).Decode(<interface>)`

ghostsquad opened this issue · comments

I'm trying to figure out what the idiomatic way of migrating from using json.NewDecoder(<bytes>).Decode(<interface>).

I'm not sure what the correct way of using this library like I would by adding UnmarshalJSON to each struct that I have specific instructions for.

Is there a fully fledged example of doing deep json unmarshalling?