Drop-in replacement for Golang encoding/json with additional features.
$ go get -u github.com/clarketm/json
Same usage as Golang
- Support zero values of structs with
omitemptyis applied to a struct and all the children of the struct are empty, then on marshalling it will be omitted from the encoded json.
Subscribe to Golang Example
Get the latest posts delivered right to your inbox