Skip to content

floats ending with '.0' turns into ints #24

Description

@jonathankarlsson

This hjson:
{
test: 1.0
}

turns into {test: 1} after hjson.loads(). A type() call says it is an int.
Maybe this is the wanted behavior? I just expected something else. "Normal" json returns a float.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions