serializing a query object using SerializeJSON does not preserve case and converts all field names to uppercase. Key case is set to Preserve case under admin settings Language/Compiler doesn't change anything. Lucee-220.127.116.11 returns the filedname as expected.
I've checked it with lucee-18.104.22.168 & Lucee-22.214.171.124. Both are returns the output in different manner. There is case sensitive problem . Here I show the result with & without issue
Output on lucee-126.96.36.199
Output on lucee-188.8.131.52
FYI the setting in the admin is about struct keys, as you can see in the documentation
“Keep all struct keys defined…“
this is expected behaviour, actually before it was incompatibility issue to other cfml engines.
you can control this behaviour as follow in your application.cfc:
changed the default behaviour of this setting
Hi Micha, I hope all is well. Hope to see you in München!
On one hand, you say “expected behaviour”, on the other hand you now make a change to revert this “expected“ behaviour. Since Lucee is not a beta product, and core functionality suddenly changed (and was breaking stuff), I don’t think it’s fair to say this sudden change leads to expected behaviour.
Just sayin’. Glad to see it is fixed, and the previous behaviour is restored.