structKeyTranslate

Converts structure key/value pairs where the key contains a period (.) into nested structures key / value pairs

structKeyTranslate(structure [, deepTranslation] [, leaveOriginalKey]) → returns numeric

Member Function Syntax

structure.keyTranslate([deepTranslation] [, leaveOriginalKey])

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

structure struct
Required

deepTranslation boolean

leaveOriginalKey boolean

Examples
Sample code invoking the structKeyTranslate function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub