I have saved JSON in a HTML object attribute like this:
<div data-json='[[30,"https:\/\/www.google.de\/",true],[41,null,null],[42,null,null],[15,null,null]]'>
When i now want to access that via jQuery it fails:
jQuery.parseJSON( jQuery('div').attr( 'data-json' ) );
It seems like the attr method is adding additional backslashes that causes this problem.
Any ideas?
EDIT: Sorry guys the problem isn't that what i've pointed out here. So this question is obsolete. Thanks for your answers.