Learn JSON, YAML and File Formats
How data is written down so a program can read it. Eleven lessons start with what a file format is and why a name ending is only a hint. Then come JSON, XML and CSV, the config files every project has, and how letters turn into bytes. It ends with IDs, dates and patterns. Every format is shown as it really looks. It assumes nothing, and it stops at the formats.
Not started
0 of 11 lessons done
Level 1 · Files and formats
score0200/7 wordsWhat a file format is, and what the end of a file name tells you. How text files and binary files are not the same.
- File Formats and ExtensionsWhat a file format is, and why the end of a file name is only a hint. How a label tells a browser what kind of file it got.10 min3 terms
- Plain Text and Binary FilesHow a plain text file differs from a binary one. Why a ZIP file shrinks text but not photos, and why a PDF looks the same on every screen.11 min4 terms
Level 2 · Data formats
score20450/6 wordsThe text formats that programs use to swap data. How a program packs up its data to save it or send it.
- JSON, XML and CSVThree plain text ways to write down data. How JSON uses names and values, how XML uses tags, and how CSV holds a table, with the rules each one breaks on.13 min3 terms
- Serialization and ProtobufHow a program turns its data into text or bytes to save or send, and back. How JSON Schema checks the shape, and why Protobuf is smaller.12 min3 terms
Level 3 · Config and docs files
score45700/9 wordsThe files that set how a program runs and keep its secrets out of the code. And the ones that turn plain text into neat pages.
- Config Files, YAML and TOMLWhat a config file is for, and the two formats most of them use. How YAML uses indents, how TOML uses headings, and the traps in each.13 min3 terms
- .env Files and package.jsonTwo files that most projects have. How a .env file keeps secrets out of the code, and how package.json lists what a JavaScript project needs.12 min3 terms
- Markdown and Front MatterHow Markdown turns a few plain signs into headings, bold words and lists. How front matter puts the title and date of a page at the top.11 min3 terms
Level 4 · Characters and escapes
score70850/8 wordsHow letters turn into bytes, and why text can come out garbled. How to write a sign that would mean something else.
- ASCII, Unicode and UTF-8How a computer stores letters as numbers. What ASCII, Unicode and UTF-8 each do, why text turns into odd signs, and why lines end in two ways.13 min5 terms
- Escapes, Base64, URL EncodingHow to write a character that would otherwise mean something else. Backslash escapes in code, Base64 for bytes, and percent signs in web links.12 min3 terms
Level 5 · IDs, dates and patterns
score851000/6 wordsThe small text shapes each program uses. An ID nobody else will make, a moment in time, and a pattern that finds text.
- UUIDs, Unix Time and ISO 8601An ID no other computer will make, a moment as one number, and a date written so it sorts. How UUIDs, Unix time and ISO 8601 work.12 min3 terms
- Regular Expressions (Regex)A short pattern that finds text by its shape. How \d, {3} and friends build a regex, how to test one, and when to stop and use code instead.13 min3 terms
Words in this course
The 36 glossary entries this course teaches, in the order it teaches them. Open any of them on its own.
- File Format
- File Extension
- Media Type (MIME Type)
- Plain Text File
- Binary File
- ZIP File
- Portable Document Format (PDF)
- JavaScript Object Notation (JSON)
- Extensible Markup Language (XML)
- Comma-Separated Values (CSV)
- Serialization
- JSON Schema
- Protocol Buffers (Protobuf)
- Configuration File
- YAML Ain't Markup Language (YAML)
- Tom's Obvious Minimal Language (TOML)
- .env File
- Environment Variable
- package.json
- Markdown
- README File
- Front Matter
- Character Encoding
- American Standard Code for Information Interchange (ASCII)
- Unicode
- 8-bit Unicode Transformation Format (UTF-8)
- Line Ending
- Escape Character
- Base64
- URL Encoding (Percent-Encoding)
- Universally Unique Identifier (UUID)
- Unix Timestamp
- ISO 8601 Date Format
- Regular Expression (Regex)
- String
- Input Validation