Skip to content

Instantly share code, notes, and snippets.

Created Sep 14, 2017
Embed
What would you like to do?
TryCF Gist
<cfscript>
data = {
boolean : true,
stringTrue : 'true',
stringYes : 'yes',
number : 5,
stringFive : '5'
};
data.each( function( key, value ) {
writeOutput( key & ' - ' & value.getClass().getName() & '<br>' );
} );
writeOutput( '<br>' );
writeDump( serializeJSON( data ) );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment