tracker issue : CF-3591823

select a category, or use search below
(searches all categories and all time range)
Title:

SerializeJSON returns invalid JSON in at least one case

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

Reporter/Name(from Bugbase): Torbjørn Angeltveit / Torbjørn Angeltveit (angeltveiten)

Created: 07/09/2013

Components: Language, Serialization

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Duplicate ID:	CF-3338825

Problem Description:
SerializeJSON returns 00 as a number, and not a string ("00").

Steps to Reproduce:
<cfset test = "00" />
#serializeJSON(test)#

Actual Result:
00

Expected Result:
"00"

Any Workarounds:
Not to my knowledge.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3591823

External Customer Info:
External Company:  
External Customer Name: angeltveiten
External Customer Email:  
External Test Config: My Hardware and Environment details:

DELL Precision T3400, Windows 7 64-bit, ColdFusion 10 update 10.

Attachments:

Comments:

This applies only for two zeros (00), which is not a valid integer thus not valid JSON. For any other number prepended with a zero, it would be interpreted as a string, ie: "05".
Comment by External U.
15020 | July 09, 2013 05:55:44 AM GMT
There also seems to be a problem with -00 and -01 being interpreted as an integer, while -02 is interpreted as a string.
Comment by External U.
15021 | July 09, 2013 06:00:10 AM GMT
This has been fixed in CF 10 update 11.
Comment by Rupesh K.
15022 | July 15, 2013 09:31:32 AM GMT