Posts by matheus • 53 points
1 post
-
5
votes1
answer1854
viewsQ: How to run a javascript function from a json file
I have a json file that is generated by php and it looks like this: { "status":200, "command":"faca algo", "action":"function (){document.write('quer que eu faça algo?');}", "type":"acao" } how to…