Skip to content

xxgreg/altjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

encoding/json: implement type override for serialization

The fork adds the following APIs:

	func (*Encoder) Register(f interface{})
	func (*Decoder) Register(f interface{})

where f is a function that determines serialization for a specific type and takes precedence over the MarshalJSON/UnmarshalJSON methods.

See: golang/go#5901

It is forked from this MR: https://go-review.googlesource.com/c/go/+/212998

About

Alternative JSON is a fork of encoding/json with a couple of extra features added

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages