For any future searches, the answer is to create a JavaScript object from inside your cpp.
Use emscripten::val And return that instead of a Vector or Map. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/73e2c0d2-e033-4894-917d-e8063e122240%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
