We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hello. i have two json files. one has titles inside, the other has paragraphs. i used a for loop within a for loop to get the first title from the first json file, then the first paragraph from the second json file, then the second title, etc. no matter what i do all i'm getting are the titles printed out first. the paragraphs get printed out after the last title or not at all. on and off i've been at this for over a week and it's making me sick.
Answers
To help we'd need to see the data structure of each file. Depending on this you should probably be able to extract everything in a single loop, but I can't be sure till I see how it's being stored. A few entries from each file will be enough, or links to their location online.
Post your latest attempt to parse the file too. We can then explain why that's not working ;)
sketch.js
lige.json
ponude.json
This is my initial implementation:
I don't have time to explain this in detail right now (already spent longer than I should!). If you have questions let me know...