Details
Details
Assignee
Unassigned
UnassignedReporter
Jon Clausen
Jon ClausenLabels
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
Priority
Created 24 April 2019 at 20:24
Updated 5 February 2025 at 12:30
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.