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

Hello, when i use the standard library to unmarshall my data i get accurate number of values which are 1000 values, but when i use jsoniter it unmarshals only 4...

version: v1.1.10 code: ```go package main import ( "encoding/json" "fmt" jsoniter "github.com/json-iterator/go" ) type obj struct { Msg string `json:"消息"` } func main() { jsonit := jsoniter.ConfigCompatibleWithStandardLibrary // \u6D88\u606F are...

change precession -> precision

#### Any tag to make some fields do serialize only, not deserialize?

why my code unmarshal is this error? if json code item is 0 or nul unmarshal errir!

UnmarshalJSON 无法反序列化自定义类型 ``` go func TestSetForm(t *testing.T) { val := `{"id":"mQgb9MXL","lv":1,"itemId":111,"inFms":[1]}` t.Log("val", val) type Soldier struct { Id string //唯一id Lv int //等级 ItemId int //物品表的id InFms slices.Set //在那几个阵型中 }...

Good day, https://codecov.io/bash recently outputted a security issue. Details can be found at https://about.codecov.io/security-update/ The following file and code are impacted. Please follow the recommended actions in the link above...

Hi there. This might be an unusual "issue" beeing reported. There has been a security incident in codecov.io with the bash-uploader script (see [1] for details) which potentially exposed secrets...

here is the code. ``` package main import ( "bytes" "encoding/json" "fmt" "github.com/json-iterator/go" ) var json2 = jsoniter.ConfigCompatibleWithStandardLibrary func main() { var ( x = -1 jsonStr []byte jsonRaw json.RawMessage...

https://github.com/json-iterator/go/blob/master/iter_object.go#L49 This function use a simple hash func to calculate one token's hash value (int64) which then is directly used to match one struct field directly without string check. But...