Structure using bracket notation
I am using cf8 and tried to create a structure using bracket notation
like this.
<cfset struct_sample = {"foo" = "bar"} />
<cfdump var="#(struct_sample)#" />
But its showing error near the opening bracket as 'Invalid CFML construct found' . If i write without quotes like this <cfset struct_sample = {foo = "bar"} />
it works fine, but it converts the key to uppercase. I need it in lowercase since it needed to converted to json format.
Can anybody explain what is wrong with the first syntax?
