toJSON
1.5.1

toJSON() -> String

返回一个 JSON 格式的字符串。

样例

'The "Quoted" chronicles'.toJSON(); 
//-> '"The \"Quoted\" chronicles"'