.toStr()

Description

Serialises the object to a JSON string. This is shorthand for JsonStringify().

Parameters

None.

Usage

log {x:1}.toStr()
// "{\"x\":1}"

Last updated

Was this helpful?