Skip to content

YAML output formats whole number floats indistinguishable from integers [formerly: JSON to TOML changes an integer to a float] #3

@rafi

Description

@rafi

JSON to TOML changes an integer to a float, this is not expected.

Example:

$ echo '{"foo.bar":"baz","qux":1}' | yj -jt
"foo.bar" = "baz"
qux = 1.0

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