toJSON
1.5.1

toJSON() -> String

Returns a JSON string.

Example


$H({name: 'Violet', occupation: 'character', age: 25 }).toJSON();
//-> '{"name": "Violet", "occupation": "character", "age": 25}'