SyntaxFix
Write A Post
Hire A Developer
Questions
JSON.stringify(data).length return string length not Object length, you can use Object.keys.
<% for(var i=0; i < Object.keys(data).length ; i++) {%>
https://stackoverflow.com/a/14379528/3224296