Convert to json utility converts integers to float

When we convert a JSON object into a JSON using the core_v2_utility.ToJson() , it converts the integers to float.

As you can see from the json created, the integer field "id" turns into a floating point number after its converted using the utility. Has anyone had a similar problem or had to work with a similar issue?