diff options
author | Unknwon <u@gogs.io> | 2018-06-09 17:20:38 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-06-09 17:20:38 +0800 |
commit | 694208865b103e6eb96f8e7e1b394037de9a89ba (patch) | |
tree | 737f55cc961965cba088d78559bbf5707630dce6 /vendor/github.com/json-iterator/go/jsoniter.go | |
parent | a75c4352453f3dfde38f2cd4930a020427951539 (diff) |
vendor: add github.com/json-iterator/go
Diffstat (limited to 'vendor/github.com/json-iterator/go/jsoniter.go')
-rw-r--r-- | vendor/github.com/json-iterator/go/jsoniter.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/github.com/json-iterator/go/jsoniter.go b/vendor/github.com/json-iterator/go/jsoniter.go new file mode 100644 index 00000000..c2934f91 --- /dev/null +++ b/vendor/github.com/json-iterator/go/jsoniter.go @@ -0,0 +1,18 @@ +// Package jsoniter implements encoding and decoding of JSON as defined in +// RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. +// Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter +// and variable type declarations (if any). +// jsoniter interfaces gives 100% compatibility with code using standard lib. +// +// "JSON and Go" +// (https://golang.org/doc/articles/json_and_go.html) +// gives a description of how Marshal/Unmarshal operate +// between arbitrary or predefined json objects and bytes, +// and it applies to jsoniter.Marshal/Unmarshal as well. +// +// Besides, jsoniter.Iterator provides a different set of interfaces +// iterating given bytes/string/reader +// and yielding parsed elements one by one. +// This set of interfaces reads input as required and gives +// better performance. +package jsoniter |