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

I'm referencing a struct of third-party library, eg look like: ``` type User struct { ID int64 `json:"id"` Name string `json:"first"` // want to change this to `json:"name"` tag string...

Is it possible to convert a string like `x=0,y=1,z=2 total=3` to json with this module: ``` { x : 0, y : 1, z : 2 } ```

Referring to https://go.dev/play/p/V-1m3E14NO2 The result of running this is * panic: interface conversion: interface {} is main.ID, not string The reason is because `ID` is a derived type, but the...

I am trying to unmarshal the struct which is having multiple tags. Some keys don't have tags associated, how to make sure that keys missing tags are not unmarshalled. ```...

when i u use x-www-form-urlencode to post restfulapi,`jsoniter` found an error like this, and it work when i post `"2022-02-28 16:10:10"`, how can i fix error. `readNumberAsString: invalid number, error...

I noticed that when we enable support for private fields and if we add a json tag, the field is no longer marshalled/unmarshalled. bellow is an example ```go type Foo...

version: v1.1.12 Go Playground: https://go.dev/play/p/v_zY8DxCkg6 code ``` package main import ( "bytes" "encoding/json" "fmt" jsoniter "github.com/json-iterator/go" ) var jsoniterObj = jsoniter.ConfigCompatibleWithStandardLibrary type Data struct { T json.RawMessage } type T...

Fix failing tests by making jsoniter string map key behaviour match the standard library