The following code:
<cfscript>
struct = StructNew();
struct.x = 1;
struct.y = 2;
</cfscript>
<cfoutput>#SerializeJSON(struct)#</cfoutput>
Results in the following output:
{"Y":2.0,"X":1.0}
So my question is why does the .0
get added? and is there some way to remove it?