client/vendor/github.com/json-iterator/go
Roland Huß 18ae474c77 chore: Update dependencies (#68)
* chore: Update dependency to knative-serving 0.5.1

* chore: Changed deps to released versions where possible

Rebuilt mod deps and vendor dir based on this dependency list

github.com/knative/serving v0.5.
github.com/knative/pkg v0.0.0-20190330001454-aad7a9ad4639
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3
github.com/spf13/viper v1.3.1
k8s.io/api kubernetes-1.14.1
k8s.io/apimachinery kubernetes-1.14.1
k8s.io/cli-runtime kubernetes-1.14.1
k8s.io/client-go v11.0.0
sigs.k8s.io/yaml v1.1.0

Not sure if all dependencies are required (e.g. is k8s.io/api required
to be specified explicitely or shouldn't we rely on k8s.io/client-go
to bring it this as a transitive dependency which maches always
the cli-runtime's version.

* chore: Update .gitignore to *not* ignore certain vendor files

* chore: Aligned with k8s version from serving 0.5.2

* chore: Run `go mod tidy`

* chore(modules): Update dependencies
2019-04-30 09:48:33 -07:00
..
.codecov.yml Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
.gitignore Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
.travis.yml Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
Gopkg.lock Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
Gopkg.toml Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
LICENSE Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
README.md chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
adapter.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
any_array.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_bool.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_float.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_int32.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_int64.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_invalid.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_nil.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_number.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_object.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_str.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_uint32.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
any_uint64.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
build.sh Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
config.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
fuzzy_mode_convert_table.md Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_array.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_float.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
iter_int.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_object.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_skip.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_skip_sloppy.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
iter_skip_strict.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
iter_str.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
jsoniter.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
pool.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_array.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_dynamic.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_extension.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
reflect_json_number.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_json_raw_message.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_map.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
reflect_marshaler.go chore: Update dependencies (#68) 2019-04-30 09:48:33 -07:00
reflect_native.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_optional.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_slice.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_struct_decoder.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
reflect_struct_encoder.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream_float.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream_int.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
stream_str.go Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00
test.sh Actually, vendor everything (#59) 2019-04-05 04:08:57 -07:00

README.md

Sourcegraph GoDoc Build Status codecov rcard License Gitter chat

A high-performance 100% compatible drop-in replacement of "encoding/json"

You can also use thrift like JSON using thrift-iterator

Benchmark

benchmark

Source code: https://github.com/json-iterator/go-benchmark/blob/master/src/github.com/json-iterator/go-benchmark/benchmark_medium_payload_test.go

Raw Result (easyjson requires static code generation)

ns/op allocation bytes allocation times
std decode 35510 ns/op 1960 B/op 99 allocs/op
easyjson decode 8499 ns/op 160 B/op 4 allocs/op
jsoniter decode 5623 ns/op 160 B/op 3 allocs/op
std encode 2213 ns/op 712 B/op 5 allocs/op
easyjson encode 883 ns/op 576 B/op 3 allocs/op
jsoniter encode 837 ns/op 384 B/op 4 allocs/op

Always benchmark with your own workload. The result depends heavily on the data input.

Usage

100% compatibility with standard lib

Replace

import "encoding/json"
json.Marshal(&data)

with

import "github.com/json-iterator/go"

var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Marshal(&data)

Replace

import "encoding/json"
json.Unmarshal(input, &data)

with

import "github.com/json-iterator/go"

var json = jsoniter.ConfigCompatibleWithStandardLibrary
json.Unmarshal(input, &data)

More documentation

How to get

go get github.com/json-iterator/go

Contribution Welcomed !

Contributors

Report issue or pull request, or email taowen@gmail.com, or Gitter chat