Learn to implement loops in Json

0
1158

In this session today, we will learn to implement loops in Json.

  • So to get started just follow the steps given below :

  1. First of all create an new folder on the desktop say JSON as shown in the figure :
  2. v0

  3. Now inside JSON folder create a new file say index.xml .
  4. Right click on index.xml file and open it with notepad++ ,thus you will have the following look of your window:-
  5. v1

  6. So lets take an simple example for implementing loop in json.
  7. In this example we will display the title ,year and genere of the various movies.
  8. So write the follwing code in notepad++:

  9. Now after writing the code you will have the following look of your notepad++ window :-
  10. v2
    v3
    v4

  11. Hence ,now when you run your file on Google Chrome you will have the following output:-
  12. v5

  13. Thus we have successfully implemented loops in json using a simple example .

LEAVE A REPLY

Please enter your comment!
Please enter your name here