We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type JString string func (j *JString) UnmarshalJSON(b []byte) error { *j = JString(b) return nil } func (j JString) MarshalJSON() ([]byte, error) { return []byte(j), nil } type Data []*map[string]JString var Tstring = "[{\"group_item_0\":\"652900\",\"group_item_1\":23,\"item_count\":1}]" func TestX(t *testing.T) { var Tdata Data err := sonic.Unmarshal([]byte(Tstring), &Tdata) fmt.Println(err.(decoder.SyntaxError).Description()) err = json.Unmarshal([]byte(Tstring), &Tdata) fmt.Println(err) }
Syntax error at index 41: invalid char ,"group_item_1":23,"item_count": ................^............... <nil>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
v0.0.0-20210824052355-8c119dd72d11
The text was updated successfully, but these errors were encountered: