pub fn to_value<T>(value: &T) -> Result<JsValue, Error>where T: Serialize + ?Sized,
Converts a Rust value into a JsValue.
JsValue