Title:
Passing a CFC object with string property value as "yes" or "no" to serializeJSON function converts the values to true or false
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): / ext-user (Anuj Nawani)
Created: 10/31/2014
Components: Language, Datastructure
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: 291820 / CF10 Update16
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win XP All
Vote Count: 1
test.cfc:
component acccessors=true {
property string title;
property string surname;
}
test.cfm:
<cfscript>
o = new test();
o.title = "Doctor";
o.surname = "No";
writeOutput(serializeJson(o));
</cfscript>
Execute test.cfm
Actual: {"SURNAME":false,"TITLE":"Doctor"}
Expected: {"SURNAME":No,"TITLE":"Doctor"}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3845642
External Customer Info:
External Company:
External Customer Name:
External Customer Email:
Attachments:
Comments: