Forking Stdlib JSON
summary
A fork of Go's encoding/json adds concrete features: an UnmarshalStrict flag to disallow unknown fields, encoder options that force nil slices/maps to encode as [] instead of null, and an omit empty via IsZero change that uses an IsZero method plus reflective deep-equal checks so whole structs (including zero times in other timezones) drop from output. Prototypes compile and work; most changes stay backwards compatible though a few options can break behavior. Also supports snake_case rewriting and dynamic unmarshalling.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:19Why
- 1:03Package
- 1:49CodeState
- 2:22Uncapped
- 2:43Practical Example
- 3:20Helper Function
- 3:55Encoder
- 4:34Empty
- 6:25Closing Thoughts








