Created
November 30, 2012 02:15
-
-
Save roulupen/4173355 to your computer and use it in GitHub Desktop.
ColdFusion 10 New Structure Declaration. [Added in Blod]
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> | |
//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