Almacene el objeto JSON en el atributo de datos en 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