0 points

iterate over a JSON array in Node.js


dashboard

Fri Nov 13 2020 21:41:22 GMT+0000 (UTC)

Posted by @mvieira #javascript

var tables = [
    { "art":"A","count":"0","name":"name1","ean":"802.0079.127","marker":"null","stammkost":"A","tablename":"IWEO_IWBB_01062015" },
    { "art":"A","count":"0","name":"2","ean":"657.7406.559","marker":"null","stammkost":"A","tablename":"IWEO_IWBB_02062015" }
];

tables.forEach(function(table) {
    var tableName = table.name;
    console.log(tableName);
});
content_copy Copy

https://stackoverflow.com/questions/31254578/how-to-iterate-over-a-json-array-in-node-js