From the course: Learn API Documentation with JSON and XML
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Data types and structured data
From the course: Learn API Documentation with JSON and XML
Data types and structured data
- [Presenter] Let's take a closer look at data types and structured data. As an API writer, one of the main tasks you'll need to do is describing data, so this lesson will explain how data is defined, especially for use in web APIs. When you are developing software, each piece of data has a type. Common types include integers, which are whole numbers, decimals, which can have digits to the right of the decimal place, text, true/false values, also known as Boolean, and so on. You can also define your own custom types, like a type that captures all the information about a user, or a device, or a bank account, and so on. This course focuses on two formats: JSON and XML. I'll go into more detail about them later, but for now, I'll mention that JSON uses three basic types: numbers, strings, and Booleans, and XML only has one type, which is strings. Let me explain what all of this means. The word "string" is a technical term meaning "text." It's essentially a group of text characters that…
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.