You should avoid using functions in JSON, the functions will loose their scope and you would have to use Eval() to convert them to new functions.
You should avoid using functions in JSON, the functions will lose their scope, and you would have to use eval() to convert them back into functions.