Skip to content
/ json Public

Drop-in replacement for Golang encoding/json with additional features.

License

Notifications You must be signed in to change notification settings

SEKOIA-IO/json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-json

Drop-in replacement for Golang encoding/json with additional features.

Installation

$ go get -u github.com/SEKOIA-IO/json

Usage

- import "encoding/json"
+ import "github.com/SEKOIA-IO/json"

Same usage as Golang encoding/json.

Features

  • Support zero values of structs with omitempty: golang/go#11939.
    • If omitempty is applied to a struct or a pointer to a struct and all the children of the struct are empty, then on marshalling it will be omitted from the encoded json.

About

Drop-in replacement for Golang encoding/json with additional features.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages