pub fn parse(text: &str) -> Result<JsValue, JsValue>
The JSON.parse() method parses a JSON string, constructing the JavaScript value or object described by the string.
JSON.parse()
MDN documentation