Answered
json iif() value is returning string instead of boolean (ACF 2021)
Hi,
The iif() is returning boolean when json serialized it's returning string instead of boolean. Thanks.
Tested on Adobe Coldfusion 2021.
Here is the code:
<cfscript>
local.test = true;
local.return = {
"hasFeed" = iif(local.test,true,false)
};
writeoutput(serializejson(local.return));
</cfscript>
