1

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?

1
  • 9.0.0 had a bunch of bugs. 9.0.1 is absolutely essential. Commented Jul 13, 2012 at 16:31

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

It looks like it's running 9.0.0. Since I can't update at this point, I'm going to assume you're correct. Thank you.
There are more than just bug fixes in 9.0.1 there are some potentially serious security issues that were fixed in later updates so be sure to install the 9.0.1 (or 9.0.2 if you don't need Verity) updater as soon as you can as well as all the relevant hot fixes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.