The wasm-bindgen crate has an API to create JsValue values, which is documented here. There's the obvious stuff like creating strings, booleans, null and undefined, but what I'm missing is a way to manually initialize and manipulate a JavaScript Object.
I'm aware of the crate's suggestion to use serde but the way that that serializes my data is not the shape that is expected on the other side. Therefore, I need to be able to create and manipulate Javascript objects manually.
And while I've found the API for Object, it is not clear at all how to convert that into a JsValue if I were to create one.
Does anyone have a clear idea of how to manually create and manipulate JS objects from rust using the wasm-bindgen API?