Heyy!
I have a small problem and I am still a beginner. That’s why I haven’t found a solution yet. ^^
There is a json file with multiple values. I would like to write the values from the file into an HTML table with Javascript (not php!).
Here is an example:
Json File:
{
"628e191673ae8f7750c62fce": {
"name": "John",
"surname": "Smith",
"age": "24"
},
"628e1fd0d27981c6250d886c": {
"name": "Fred",
"surname": "Bloggs",
"age": "32"
},
"628e20c805f38641bdc08d7d": {
"name": "Joe",
"surname": "Harris",
"age": "27"
}
}
The table should then look like this:
Name | Surname | Age |
---|---|---|
John | Smith | 24 |
Fred | Bloggs | 32 |
Joe | Harris | 27 |
What is the best way for me to do this with Javascript?
Thank you in advance. 🙂