clusterlint/vendor/github.com/json-iterator/go
Dylan Scott 9617526dcc
CON-6265 Update Kubernetes dependencies in clusterlint (#142)
Co-authored-by: Dylan Scott <dscott@digitalocean.com>
2022-05-18 15:02:51 +01:00
..
.codecov.yml Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
.gitignore Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
.travis.yml Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
Gopkg.lock Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
Gopkg.toml Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
LICENSE Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
README.md Don't let client-go leak memory 2022-04-07 12:37:44 +02:00
adapter.go modules: upgrade k8s.io/client-go to kubernetes-1.16.2 2019-11-18 12:21:06 -08:00
any.go modules: upgrade k8s.io/client-go to kubernetes-1.16.2 2019-11-18 12:21:06 -08:00
any_array.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_bool.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_float.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_int32.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_int64.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_invalid.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_nil.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_number.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_object.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_str.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
any_uint32.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
any_uint64.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
build.sh Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
config.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
fuzzy_mode_convert_table.md Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
iter.go Update vendor 2020-06-11 11:39:40 -07:00
iter_array.go Update vendor 2020-06-11 11:39:40 -07:00
iter_float.go Upgrade kubernetes dependencies to 0.22.5 2022-01-11 12:12:34 -05:00
iter_int.go Upgrade kubernetes dependencies to 0.22.5 2022-01-11 12:12:34 -05:00
iter_object.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
iter_skip.go modules: upgrade k8s.io/client-go to kubernetes-1.16.2 2019-11-18 12:21:06 -08:00
iter_skip_sloppy.go Update vendor 2020-06-11 11:39:40 -07:00
iter_skip_strict.go modules: upgrade k8s.io/client-go to kubernetes-1.16.2 2019-11-18 12:21:06 -08:00
iter_str.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
jsoniter.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
pool.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
reflect.go Upgrade kubernetes dependencies to 0.22.5 2022-01-11 12:12:34 -05:00
reflect_array.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
reflect_dynamic.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
reflect_extension.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
reflect_json_number.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
reflect_json_raw_message.go Upgrade kubernetes dependencies to 0.22.5 2022-01-11 12:12:34 -05:00
reflect_map.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
reflect_marshaler.go Update vendor 2020-06-11 11:39:40 -07:00
reflect_native.go modules: upgrade k8s.io/client-go to kubernetes-1.16.2 2019-11-18 12:21:06 -08:00
reflect_optional.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
reflect_slice.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
reflect_struct_decoder.go Upgrade kubernetes dependencies to 0.22.5 2022-01-11 12:12:34 -05:00
reflect_struct_encoder.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
stream.go vendor: update k8s deps to 1.19.3 2020-10-29 18:25:28 -05:00
stream_float.go modules: upgrade k8s.io/client-go to kubernetes-1.16.2 2019-11-18 12:21:06 -08:00
stream_int.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
stream_str.go Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00
test.sh Create check registry with initial noop check, and vendor dependencies 2019-06-11 14:25:39 -04:00

README.md

Sourcegraph GoDoc Build Status codecov rcard License Gitter chat

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

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 jsoniter "github.com/json-iterator/go"

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

Replace

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

with

import jsoniter "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