SerializeJSON argument error even when supplied argument is a boolean

Description

SerializeJSON with a query object in argument 1 and a boolean "1" in argument two returns

invalid call of the function SerializeJSON, second Argument (options) is invalid, When var is a Query, argument [options] must be either a boolean value or a string with the value of [struct], [row], or [column]

Same code worked fine in 5.2.1.9. Seems to work in our test environment under 5.2.2.63-SNAPSHOT as well.

Environment

IIS10 Win Server 2016

Activity

Show:
Michael Offner
April 25, 2019, 1:48 PM

that happens when we add addional arguments when implement a function ACF has. then later ACF adds addional arguments as well.

Jon Clausen
May 14, 2019, 8:14 PM
Edited

I totally understand . If we could just allow for boolean arguments in the 2nd and third arguments (which would translate in to options? ), it would really help. Right now, I have to do this in one of one of our Coldbox modules to support both engines:

Not having to do engine detection, would make it easer to migrate ACF apps to Lucee too!

Igal Sapir
May 14, 2019, 9:40 PM

Iā€™m working on this ticket and hopefully will resolve it soon (or come back with more questions).

Michael Offner
August 13, 2019, 9:13 AM

Michael Offner
August 13, 2019, 9:16 AM

we still miss the attribute ā€œuseCustomSerializerā€œ all the other attributes now are acf compatible and backward compatible.

Fixed

Assignee

Michael Offner

Reporter

Nicholas Voss

Priority

Major

Fix versions

Sprint

None

Affects versions

Configure