Someone says here that it would open to attack How do you serialize javascript objects with methods using JSON
This is a rather superficial answer for me because why would it would more open to attack than classical ajax call ? Is the guy just against Ajax ?
It's not about transmitting code to be executed to the server, it's about transmitting code to the client and it's in javascript I can't see how it's more dangerous than ajax since ajax is just doing that but statically instead of dynamically.