I want to form the table for the json data.I juct removed the quotation,comma and curly braces.
and tried to add table for geo ,meeting hash and count.Now able to add only space.
const summary_data=[{Geo: "US West", MeetingHash: "Hold/Uncategorized", count: 65},
{Geo: "NSU", MeetingHash: "Hold/Uncategorized", count: 9},
{Geo: "US East", MeetingHash: "Hold/Uncategorized", count: 3}];
var str="";
$.each(summary_data, function (key, entry) {
str += "<tr><td>
"+JSON.stringify(entry) .replace(/,|{|}|"/g," ") + "
</td></tr>";
});
console.log(str);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…