how to store json object in c++ with emscripten so that I can use val() later on to return to js

18 views
Skip to first unread message

Tuan Anh Tran

unread,
May 28, 2019, 2:24:07 AM5/28/19
to emscripten-discuss
how to store json object in c++ with emscripten so that I can use val() later on to return to js

If i use a third party lib, it will fail when using val() with error

BindingError: _emval_take_value has unknown type

Tuan Anh Tran

unread,
May 28, 2019, 6:22:59 AM5/28/19
to emscripten-discuss
for those come here later, here what i do

  val entry = val::object();
  entry.set(string("name"), string("A"));
Reply all
Reply to author
Forward
0 new messages