Skip to content

Keep getting error on GetString #79

@buzzy

Description

@buzzy

According to the manual, there should be a function called GetString, but only GetStringBytes works for me.

var parser fastjson.Parser
json, err := parser.Parse(string(response.Body))

data := json.GetString("data")

./main.go:368:31: json.GetString undefined (type *fastjson.Value has no field or method GetString)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions