Created
May 30, 2019 20:28
-
-
Save trycf/bbb44c1a756142ef985504a738b60553 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
q = queryNew("Id,Name" | |
, "integer,varchar" | |
, [{id=11,Name="John"}]); | |
writeDump( formatData( q )); | |
array function formatData(qryData) { | |
return DeserializeJSON(SerializeJSON(arguments.qryData, "struct")); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment