java - Serialization of int property is presented as double? -


i have basic pojo property of type int.

... @json(name = "partner_id") int partner_id = 1; ...

after serialization logs in json as:

... "partner_id":1.0 ...

how can prevent conversion double if wish send partner_id int, way it's modeled?

update. i'm using moshi-jsonapi, json:api-compliant fork of square's moshi.

@kirisetsz kind enough take time recognize bug in library, , published fix. again!