From the course: Exploring C Libraries
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Working with JSON
- [Narrator] One of the most popular Data Interchange Format's is JSON. It stands for JavaScript Object Notation. JSON has an advantage of XML data in that it's simpler and more readable. Like XML, JSON data is plain text. And if you install a C Language JSON library, your code can both parse and create JSON formatted data. JSON data is constructed based on name/value pairs as well as ordered lists which are similar to arrays. An object is enclosed in braces or curly brackets. It consists of a name, a string, followed by a colon and then a value. Additional name/value pairs can be included in the object with each separated by commas. Like an array, an ordered list is a set of values enclosed in square brackets. The values follow a name, and are separated by commas. Values in a JSON Object can be one of an interesting assortment of items. A string enclosed in double quotes, which can also include escaped characters such…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.