JSFiddle - React, Tailwind, and code Playground
JavaScript
var data = [{
"country": "Andorra",
"code": "AD",
"state": [{
"state_code": "AD1",
"state_description": "aaAndorra1"
}, {
"state_code": "AD2",
"state_description": "aaAndorra2"
}]
}]
data.forEach(function(itm) {
itm.state.forEach(function(itm1) {
console.log(itm1.state_code, itm1.state_description);
});
});