Skip to content

Why int value in jsonb mapped to float ? #113

Description

@abcfy2

I use 5.2.0 in grails 3.3.3.

Here is my jsonb velue in database:

{
    "orderId": 890
}

But when I get from domain, I find it has been converted to float, why ?

Domain domain = Domain.first()
domain.params.orderId  // print 890.0

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