Now that you understand the concepts, Peter shows you some example JSON files. A simple file captures data about a song. A more complex example captures data about a menu structure. Finally, learn how to properly indent a JSON file.
I just type one, then both the closed and open appear.…Give myself a little space.…So this object is going to have…a key of "song", in quotation marks.…We'll put a colon here.…And then we've got to have another set of curly brackets.…We then indent.…And we have some key-value pairs.…First one is a title.…This'll be the title of the song.…I'll call it JSON Lullaby.…
Next key will be the artist,…and its value is going to be The Instructors.…That'll be the name of our group here, singing the song.…The last one will be musicians.…
- The purpose of documentation
- Data types
- Structured data
- Writing JSON and XML
- Documenting one-level JSON responses
- Documenting nested JSON responses
- XML attributes and examples
- Documenting XML
- Structuring data documentation
Skill Level Intermediate
Introduction to JSON and XML Documentation
Next steps1m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.