I have a .json file like this:
import single from 'file.json'
{
"id": 4,
"code": 4508099576,
"important": [
{
"id": 4,
"name": "services"
}
]
}
I want to access "services" for render it. But the following syntax doesn´t work:
<span>Plans: {single.important.name}</span>
{single.important[i].name}whereiis the index.