pub fn stringify(obj: &JsValue) -> Result<JsString, JsValue>
The JSON.stringify() method converts a JavaScript value to a JSON string.
JSON.stringify()
MDN documentation