I have a JSON file that has several main keys, and I do not know how to loop through them. I have this:
function JsonDataDisplay(){
const DisplayData=JsonData.first_object.map(
(info)=>{
return(
<tr>
<td>{info.name}</td>
<td>{info.lastModified}</td>
<td>{info.etag}</td>
</tr>
)
}
)
The problem with the code above is that I have to type one of the main values manually, such as "first_object". How can I avoid that and loop through all of them instead?