Przechowuj obiekt JSON w atrybucie danych w HTML
<!-- When passing objects to an attribute -
<!-- use single quotes (') rather than double (")
<!-- If passing JSON objects to an attribute - the json has to be valid ie.
<!-- using " for property and values
<!-- Using double quotes escapes the object when being parsed by JQuery
<!-- causing it to not be pulled -->
<div data-foobar='{"foo":"bar"}'></div>
Darker