Skip to content

affected/package: encoding/json so you should give an option to Marshal int64 as string #54017

@introspection3

Description

@introspection3

m := map[string]int64{"abc": math.MaxInt64}
strBytes, _ := json.Marshal(m)
json := string(strBytes)
//this json will be used by javascript,(as json is javascript),but javascript can't use this MaxInt64,
//so you should give an option to Marshal int64 as string

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions