Converts a JSON supported data type into a string.
Parameters
data: any
The data to convert.
Returns string|null
The string representation or null if the
stringify failed.
Example
// To parse and stringify JSON data or types supported by JSON // Where data is an object, array, boolean, string, number, or null // Invalid data will return as null. letstringified = json_stringify(data); letparsed = json_parse(stringified);
Converts a JSON supported data type into a string.