SerializeJSON Method Signature Differences

Description

The method signature of this function is wildly different than Adobe’s version, in general.

Lucee’s:
SerializeJSON( var [, options [, charset ] ] )

Adobe’s :
SerializeJSON(data[, queryFormat[, useSecureJSONPrefix[, useCustomSerializer]]])

https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-s/serializejson.html

I would suggest adding support for the Adobe argument collection - specifically the third argument which allows the bypassing of JSON prefixes. Otherwise, engine detection and switching becomes necessary when developing modules and frameworks for universal compatibility on all engines.

Activity

Michael Offner 
9 September 2019 at 12:25

changed ticket type to enhancement

Michael Offner 
9 September 2019 at 12:24

the following ticket already partly addressed the issue

and explain why Lucees functions differ, the only thing different is that Lucee still miss the argument “useCustomSerializer“

Luis Majano 
24 April 2019 at 20:37

This is biting us on compatibility as well!

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 24 April 2019 at 20:24
Updated 5 February 2025 at 12:30