I'm running a script that was passed on to me by a third party. And it's giving the following error:
TypeError: $.toJSON is not a function
The script probably makes use of the jquery-json library. Download it and include it in your project.