Skip to content

-forcefloats flag does not work #77

@sheng-di

Description

@sheng-di

It does not work.
Input:

echo '{"value": 9.00}' | gojson -forcefloats

and the output is:

type Foo struct {
	Value int64 `json:"value"`
}

The -forcefloats flag does not work.

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