SerializeJSON not preserving case on query

Description

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-5.3.1.102 returns the filedname as expected.

Environment

None

Activity

Show:
Pothys - MitrahSoft
June 4, 2019, 3:42 PM

I've checked it with lucee-5.3.1.102 & Lucee-5.3.2.77. Both are returns the output in different manner. There is case sensitive problem . Here I show the result with & without issue

Output on lucee-5.3.1.102

Output on lucee-5.3.2.77

Michael Offner
June 17, 2019, 1:42 PM

FYI the setting in the admin is about struct keys, as you can see in the documentation

Keep all struct keys defined…

Michael Offner
July 19, 2019, 3:46 PM

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:

Application.cfc

 

Michael Offner
July 19, 2019, 4:41 PM

changed the default behaviour of this setting

Paul Klinkenberg
July 19, 2019, 5:34 PM

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.

Fixed

Assignee

Michael Offner

Reporter

Pothys - MitrahSoft

Priority

Critical

Labels

Fix versions

Sprint

None

Affects versions

Configure