parsingdata-structurescoldfusioncfdump

Parsing CFDUMP struct and store values


How do I parse this structure? I need to turn this into single variables. E.g. from the attributes struct:

name

type

value

I'm not familiar with structures, and I need to enter this type of data into a database.

I've played around with cfloop, but nothing.

cfdump


Solution

  • Assuming your variable name is "foo", you can access the name like this

    foo.attributes.name
    

    Structures are simply accessed via dot notation.