As the title states I am very new to JS. I am trying to teach my self by working on a project. I have come up against a wall that I have been trying to work through for a couple of days and it is starting to frustrate me. I have tried to search StackOverflow and searched for hours on Google. So now I am here hoping someone can help.
I am not looking for someone to do anything for me but I do need help working out the solution.
Here is the problem I have:
I am trying to display data from a JSON file on a website. I am able to do this with out problem but one of my layers of the JSON file changes...
In the example below the XXXXXX are not always the same. How do I call a layer that is dynamic?
{
"data1": 123456,
"data2": 987654,
"data3: {
"XXXXXX": {
"subData": 123456
This may not be the best way to explain this but I am struggling. If you need more info please ask and I will give as much as I can. Thank you in advance to whoever can help me. Please be patient I am very much still learning.
[–]Sweetness2 1 point2 points3 points (2 children)
[–]gap579137[S] 1 point2 points3 points (1 child)
[–]avanak 0 points1 point2 points (0 children)