This function implements the core SerializeJSON() function, converting any CFML data object, including queries, to the JSON format for use within Javascript applications.
OpenBD has extended this function to remove an irritation with the case sensitivity of the resulting data names. This makes it easier to work with certain Javascript frameworks.
Contents |
SerializeJSON( data, serializeQueryByColumns [, lowercase] )
This function returns a string representing the JSON version of the data passed in.
This function will output integers and doubles accordingly. For example, a variable representing 8, will be translated to 8, and not 8.0 as with other CFML engines.