Skip to content

Instantly share code, notes, and snippets.

@roulupen
Created November 30, 2012 02:15
Show Gist options
  • Save roulupen/4173355 to your computer and use it in GitHub Desktop.
Save roulupen/4173355 to your computer and use it in GitHub Desktop.
ColdFusion 10 New Structure Declaration. [Added in Blod]
<cfscript>
//New Type Structure declaration introduced in ColdFusion 10
request.employee = {
name: "Upendra Roul",
ID: "06-800",
JobTitle: "ColdFusion Developer"
};
writeDump(request.employee);
//If you want to make the structure keys case sensitive then put them
//in double cote or single cote as below
request.employeeCaseSensitive = {
"Name": "Upendra Roul",
"ID": "06-800",
"JobTitle": "ColdFusion Developer"
};
writeDump(request.employeeCaseSensitive);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment