Status/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Mingo Hagen / Mingo Hagen (Mingo Hagen)
Created: 12/03/2015
Components: Language
Versions: 11.0
Failure Type: Unspecified
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Trivial / Unknown
Locale/System: ALL / Platforms All
Vote Count: 6
Problem Description:
Using serializeJSON() to convert an object to json gives a different result than when using serializeJSON() to convert a struct to json when it encounters a NULL value.
Steps to Reproduce:
var asStruct = {
"nullField" = javaCast( "null", 0 )
};
var asEntity = entityNew( "objectWithNull", asStruct );
writeOutput( serializeJSON( asStruct ) & "<br>" );
writeOutput( serializeJSON( asEntity ) & "<br>" );
Actual Result:
{"nullField":null}
{}
Expected Result:
{"nullField":null}
{"nullField":null}
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4095369
External Customer Info:
External Company:
External Customer Name: Mingo Hagen
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows / CF11
Attachments:
- December 03, 2015 00:00:00: 1_null-inconsistency.zip
Comments: