sorry to keep posting bugs here -- I did head over to the Assembla
repository but wasn't able to post it there (no access)
Anyhow... in Coldbox 3.0 RC2 (from git)
JSON.cfc > encode() has a keyCase argument which is not passed through
to its recursive calls, meaning that nested structs always have
lowercase keys.
encoding this:
<cfset st = {foo={bar=1}}>
<cfoutput>#JSON.encode(data=st, keyCase="upper")#</cfoutput>
would result in
{FOO:{bar:1}} instead of {FOO:{BAR:1}}
eg:
<cfset tempVal = encode( _data[i], arguments.queryFormat,
arguments.queryKeyCase, arguments.stringNumbers,
arguments.formatDates, arguments.columnListFormat) />
should be
<cfset tempVal = encode( _data[i], arguments.queryFormat,
arguments.queryKeyCase, arguments.stringNumbers,
arguments.formatDates, arguments.columnListFormat,
arguments.keyCase ) />
there are 4 occurrences on lines 306,334,397,420
cheers
CC