I have some HTML that contains a JSON string. In the on DOM ready callback, I have something like this:
MyObject = JSON.parse($(\'#TheJsonString\').
{"bindings": "hr", "method":"asd"}
I tested it like this, but it works fine without any warnings.