Revised 8/16/2007: Added this page.
Converts a JavaScript expression to a JSON-encoded string.
ColdFusion.JSON.decode(espression)
ColdFusion.JSON.decode, DeserializeJSON, SerializeJSON, "Using Ajax Data and Development Features" in the ColdFusion Developer's Guide, The JSON.org web site
ColdFusion 8: Added this function
|
Parameter |
Description |
|---|---|
| expresson | The expression with the data to encode. |
A string containing the data in JSON encoded format.
Use this function when you must explicitly convert between JavaScript and JSON format, for example, when you must call a remote function that is not in a CFC.
See the example in ColdFusion.JSON.decode.