example:
<cc:attribute name="modelDTO" type="com.example.dto.ChartDTO"/>
and cc:implement
<cc:implement>
<script>
var dto = '${cc.attrs.modelDTO}';
console.log(dto);
</script>
</cc:implement>
when i'm using this tag, i show log and get com.example.dto.ChartDTO@520ff6ee
. so, how to parse dto to json in javascript?. i tried var json = JSON.parse(dto);
but cann't