Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Matt Busche / Matt Busche (Matt Busche)
Created: 09/16/2013
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / CF10_Update14
Priority/Frequency: Major / All users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 3
Problem Description: serializing a struct with a value of +0.0 result in invalid JSON
Steps to Reproduce:
<cfscript>
stPolicy = { "prem": "+0.0" };
serializedData = serializeJSON(stPolicy);
writeDump(isJSON(serializedData));
writeDump(deserializeJSON(serializedData));
</cfscript>
Actual Result: isJSON returns no, deserializeJSON returns JSON parsing failure at character 9:'+' in {"prem":+0.0}
Expected Result: isJSON is true and it can deserialize the JSON it just created
Any Workarounds: create a separate function to replace +0 with a 0, but this is not a good workaround.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3632972
External Customer Info:
External Company:
External Customer Name: mrbusche
External Customer Email:
External Test Config: My Hardware and Environment details:
ColdFusion 10,0,11,285437 Windows 7 64-bit
Attachments:
- September 17, 2013 00:00:00: 1_test.cfm
Comments: