Status/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Christopher Tierney / Christopher Tierney (Christopher Tierney)
Created: 01/15/2014
Components: Language, Serialization
Versions: 9.0.1
Failure Type: Data Corruption
Found In Build/Fixed In Build: 9.0.1 /
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 2
Problem Description: When a method in a component serializes an array within a struct, using returnFormat="JSON", the resulting JSON output will take a string of "yes" and turn it into a boolean of true.
Steps to Reproduce:
Data:
-- Inside a method of a component with a returnFormat="JSON" --
-- myQueryResult is a column from a query result --
myStruct = { "cell" = [ myQueryResult['myVarChar'][1] ] }
return myStruct
Actual Result:
{"cell"=[true]}
Expected Result:
{"cell"=["yes"]}
Any Workarounds:
Add space to end of string being entered into the array and then trim it on the client side.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3694322
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: CFJSGeek
External Customer Email:
Attachments:
Comments: