I have a JSON array:
[
{
"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"
}
]
To iterate over the array in PHP I would use the following code to iterate over the tablenames:
foreach($jArray as $value){
$tablename = $value['tablename'];
//some code
}
How can I do this in Node.js? I found many questions with it, but no actual answer. Most of them are from 2011.
for(;;)
for an Array,for..in
for an Object