Skip to content

sg3des/json

 
 

Repository files navigation

json

This is a fork of golang's encoding/json with an extra method MarshalSafeCollections that marshals nil slices and maps into [] and {} respectfully instead of null. Additionally added SetNilSafeCollection to the Encoder in order to turn on the flag (default: false).

The semantic versioning for this repository follows that of the go src version that it forks from.

About

golang json package with save nil slice serialization

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%