How do I get example from JavaScript fetch when I get the response it comes like so how can I get example.
[
{
example: 'true',
}
]
My code
.then(res => res.json())
.then(json => {
console.log(json.example)
})
This is an array, so it should be accessible as json[0].example