go icon indicating copy to clipboard operation
go copied to clipboard

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

Results 188 go issues
Sort by recently updated
recently updated
newest added

Hi, thanks for this nice project :sparkles:! Now, as of Go 1.13 if I recall correctly, there is a new way to compare errors using the `errors.Is` method in the...

Hi! Thanks for this great project :1st_place_medal: :100: When decoding JSON, sometimes you just want to inform the users about problems in the serialized content, rather than returning an error...

I use golang. It is support arm64? Thanks~

like this one: ``` { "name": "ok", "age": 20 } { "name": "ok", "age": "20" } ``` type GoStruct struct { Name string `json:"name"` Age int `json:"age"` }

i use the lib for 2 days, but found 2 bugs the document said it tries to 100% compatible, obviously it has a long way to go... 1. while original...

I registered a Encoder for struct a, and embedded it in struct b, but it doesn't work when I try to marshal data to b.

Fix issue [#564](https://github.com/json-iterator/go/issues/564) . 1. Substream in `sortKeysMapEncoder` inherits indention from parent. 2. Revert extra newline&indention for obj with no writable fields. 3. Add more test cases for `MarshalIndent` API.

There are some cases `jsoniter` behaves incorrectly when marshaling map/object with indention. 1. Nested map/obj/slice inside map encoding using `sortedKeysMapEncoder` have incorrect indentions. ```go func (encoder *sortKeysMapEncoder) Encode(ptr unsafe.Pointer, stream...

for example: ``` func Test_customize_field_by_extension(t *testing.T) { should := require.New(t) cfg := jsoniter.Config{}.Froze() cfg.RegisterExtension(&testExtension{}) obj := TestObject1{} err := cfg.UnmarshalFromString(``, &obj) should.Nil(err) } ``` expect: err is nil, but err:...

// ---------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------- // panic 1 // ---------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------------------------------- goroutine 13829950 [running]: runtime.throw(0x1cc922f, 0x5) /usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc01f9c73c8 sp=0xc01f9c7398 pc=0x434a52 runtime.sigpanic() /usr/local/go/src/runtime/signal_unix.go:702 +0x3cc fp=0xc01f9c73f8 sp=0xc01f9c73c8 pc=0x44babc github.com/json-iterator/go.(*int32Codec).IsEmpty(0x2ecf180, 0xc029e8a7af5855c5, 0xc03316d758)...