How to use a loop with json data inside the ajax function? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to use a loop with json data inside the ajax function?

30th Jun 2021, 3:03 PM
Pravin Dahal
2 Answers
0
Pravin Dahal Are you trying to traverse the JSON in a way where you don't know the structure? It would help if you had details for a particular scenario in mind. For example, are you iterating the object properties, arrays, or both? Will this be a shallow or deep iteration? The answer to this question could be very simple or complex without further clarification.
30th Jun 2021, 4:34 PM
David Carroll
David Carroll - avatar