serializeJSON with "struct" is changing key case to upper

Description

Hi,

While updating the Lucee server from 5.2 to 5.3, I found an issue with serializeJSON function. In the latest version, it changed the key case to uppercase when passed "struct" as second arguments.

1 2 3 4 5 6 7 8 9 10 11 variables.qEmpls = queryNew('employeeId, employeeName', 'integer, varchar'); queryAddRow(variables.qEmpls, 1); querySetCell(variables.qEmpls, 'employeeId', 1); querySetCell(variables.qEmpls, 'employeeName', 'Bharat'); queryAddRow(variables.qEmpls, 1); querySetCell(variables.qEmpls, 'employeeId', 2); querySetCell(variables.qEmpls, 'employeeName', 'Naresh'); dump(serializeJSON(variables.qEmpls, "struct"))

Version: 5.2.9.31 [maintain case]

[{"employeeId":1,"EMPLOYEENAME":"Bharat"},{"employeeId":2,"EMPLOYEENAME":"Naresh"}]

Version: 5.3.2.77 [change case to upper]

[{"EMPLOYEEID":1,"EMPLOYEENAME":"Bharat"},{"EMPLOYEEID":2,"EMPLOYEENAME":"Naresh"}]

Am I miss anything?

Thanks,
Bharat

Status

Assignee

Unassigned

Reporter

Bharat Patel

Labels

None

Priority

New
Configure