I’m running into a strange issue when I try to use quoted key values in nested implicit structs.
<cfset outer = {
inner = {
standard = "works",
"quoted" = "does not work"
}
} />
<cfdump var=#outer.inner["quoted"]# />
This produces the error: Element quoted is undefined in a CFML structure referenced as part of an expression.
Dumping the entire outer struct shows no value there as well.
What’s going on here?
Your code works for me. Are you on ColdFusion 9.0.1? I believe there were some bug fixes related to nested structs/arrays in 9.0.1. Try installing the updater if you have not.