Function “toJSON”
function toJSON(value)
Converts a value to a JSON string
Parameters
| Name | Type | Description |
|---|---|---|
value | any | Any value to convert to a JSON string |
Return Value
Returns a JSON string representing the given value.
function toJSON(value)
Converts a value to a JSON string
| Name | Type | Description |
|---|---|---|
value | any | Any value to convert to a JSON string |
Returns a JSON string representing the given value.