Note: JSON is a
format and not a language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following is an example in XML: | |
<?xml version="1.0" encoding="utf-8"?> | |
<students> | |
<student> | |
<studentid>101</studentid> | |
<firstname>Jony</firstname> | |
<lastname>M</lastname> | |
<classes> | |
<class>Computers</class> | |
<class>Maths</class> | |
<class>Eng</class> | |
</classes> | |
</student> | |
<student> | |
<studentid>102</studentid> | |
<firstname>Den</firstname> | |
<lastname>g</lastname> | |
<classes> | |
<class>Finance</class> | |
<class>UI</class> | |
<class>Maths</class> | |
</classes> | |
</student> | |
</students> | |
Let us take a look at the example in JSON: | |
/*This is an example students feed in JSON */ | |
{ | |
"students": { "0": { "studentid": "101", "firstname": "A1", "lastname": "B1", "classes": [ "A1", "b1", "c1" ] }, "1": { "studentid": "102", "firstname": "A2", "lastname": "B2", "classes": [ "A2", "b2", "c2" ] } } | |
} |