I have JSON which contains function names:
{
"login": "do_login",
"logout": "do_logout"
}
Is it possible after parsing that JSON to call functions do_login and do_logout?
I mean this:
var obj = JSON.parse({"login": "do_login","logout": "do_logout"});
obj.login();
I’m not sure if I understood it correctly but try this