Title:
string 'yes' converts to true when using serializeJSON() even when using javaCast('string','yes'))
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/AsDesigned
Reporter/Name(from Bugbase): Bill Reese / Bill Reese ()
Created: 03/21/2017
Components: Language, Serialization
Versions: 11.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: CF11 Latest HF /
Priority/Frequency: Normal / All users will encounter
Locale/System: / Platforms All
Vote Count: 0
Problem Description:
string 'yes' converts to true when using serializeJSON() even when using javaCast('string','yes'))
Steps to Reproduce:
o = {
'bad': 'yes',
'worse': javaCast('string','yes')
};
j = serializeJSON(o);
writeOutput(j);
Actual Result:
{
'bad': true,
'worse': true
}
Expected Result:
{
'bad': 'yes',
'worse': 'yes'
}
Any Workarounds:
None that should have to be done.
Attachments:
Comments: