json icon indicating copy to clipboard operation
json copied to clipboard

wasm_bindgen::JsValue to a serde_json::Value

Open caperaven opened this issue 2 years ago • 0 comments

is there a way where I can convert wasm_bindgen::JsValue to a serde_json::Value and back?

caperaven avatar Jul 16 '22 09:07 caperaven

wasm_bindgen JsValue has serde support. You could also use serde-wasm-bindgen (which may be preferred in some cases).

dariusc93 avatar Aug 11 '22 04:08 dariusc93