Skip to content

json.Number marshaled as text instead of number #220

Open
@rkuska

Description

@rkuska

stdlib json behaviour:

https://play.golang.org/p/6DIsQk0xeMZ

Yet when I use json.Number as type with easyjson it is being Marshaled into a string. From generated file:

out.String(string(in.PriceBaseFare))

where PriceBaseFare is defined as:

PriceBaseFare json.Number

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