Skip to content

Unicode 解析有问题 #10

Closed
Closed
@Kisesy

Description

@Kisesy
b := `{"t": "\u002D\u002D\u002D", "l": "\u002d\u002d\u002d"}` 
iter := jsoniter.ParseString(b)
i := iter.ReadAny()
fmt.Println(i.Get("t").ToString(), "|", i.Get("l").ToString())
// OutPut:  | ---

解析时遇到 \u002D 这种字母大写的就解析不出来,小写就正常

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions