Skip to content
BENIBIX Learn

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

11 lessons5 sections~2 h36 termsSee the wordsBasic

Level 1 · Files and formats

score0200/7 words

What a file format is, and what the end of a file name tells you. How text files and binary files are not the same.

  1. 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
  2. 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 words

The text formats that programs use to swap data. How a program packs up its data to save it or send it.

  1. 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
  2. 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 words

The 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.

  1. 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
  2. .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
  3. 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 words

How letters turn into bytes, and why text can come out garbled. How to write a sign that would mean something else.

  1. 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
  2. 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 words

The small text shapes each program uses. An ID nobody else will make, a moment in time, and a pattern that finds text.

  1. 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
  2. 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.

Back to the top

See what comes after this course