I have a data struct being stored in JSON format, converted using the serializeJSON function. The problem I am running into is that strings that can be boolean in CF such as
it's hacky, but if you conditionally output yes and no as "_yes_" and "_no_" (using a switch statement and then after serialising the JSON to a string, do a search and replace, it works.
raw_json=serializeJSON(object);
raw_json=ReplaceNoCase(raw_json,':"_Yes_"',':"Yes"',"ALL");
raw_json=ReplaceNoCase(raw_json,':"_No_"',':"No"',"ALL");
at least CF is consistantly frustrating with this, true & false get converted to yes no when you round trip the data