Array(
migxid => 1
content => Itsacontent
<script>
var data = {
[[getImageList?
&tvname=`myMIGXTV`
&tpl=`tplToJSONgenerator`
&outputSeparator=`, `
]]
};
</script>
"item_[[+MIGX_id]]": {
"description": "[[+description]]",
"content": "[[+item_content]]"
}
<div class="theitem" modalid="1">
<img src="img.jpg">
</div>
<script type="text/javascript">
function openModal(){
console.log($(this).attr('modalid'));
}
$('.theitem').on('click', openModal());
</script>