Skip to content

Numbers are converted to doubles #504

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
        Map x = new GsonBuilder().create().fromJson("{\"hello\":1}",Map.class);
        Assert.assertEquals(1,x.get("hello"));

What is the expected output? What do you see instead?

1 should be the value, but the value is read as 1.0.

What version of the product are you using? On what operating system?

2.2.2

Please provide any additional information below.

Original issue reported on code.google.com by mar...@jitisoft.com on 21 Feb 2013 at 2:48

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions