The following code:
sol::state lua;
lua.open_libraries( sol::lib::base );
sol::table result = lua.script( R"( 'machineData={serial=1,name="mob2",}' )" );
throws the following error:
[sol2] An error occurred and has been passed to an error handler: sol:
syntax error: [string ” ‘machineData={serial=1,name=”mob2″,}’ “]:1:
unexpected symbol near ”machineData={serial=1,name=”mob2″,}”
terminate called after throwing an instance of ‘sol::error’