Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/8b246cb3e22dfe880c21a3cc6bec4695 to your computer and use it in GitHub Desktop.
Save trycf/8b246cb3e22dfe880c21a3cc6bec4695 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
news = queryNew("id,title", "integer,varchar");
queryAddRow(news);
querySetCell(news,"id","1");
querySetCell(news,"title","Dewey defeats Truman");
json = serializeJSON(news,"struct");
writeDump(json);
json = serializeJSON(news,true);
writeDump(json);
json = serializeJSON(news,false);
writeDump(json);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment