Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
/ json Public archive

golang json package with save nil slice serialization

License

Notifications You must be signed in to change notification settings

homelight/json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Changelog

v1.18

  • BREAKING CHANGE: Empty byte slices are now marshaled into empty strings, rather than arrays (#4)

About

golang json package with save nil slice serialization

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages