~/devtype

JSON & YAML Typing Speed Test

Config files are where developers spend more typing time than they admit: package manifests, CI pipelines, Kubernetes manifests, compose files. JSON's quote-colon-comma discipline and YAML's indentation-plus-dash structure each have their own failure modes worth training.

LV 1
Level 0 / 100 XP
Best 0 WPM
main.js
00 wpm
00%
0s
1
Just start typing or click the code
Esc restart Enter new line, indentation is skipped for you

Config Syntax: Strict and Stricter

JSON is unforgiving: every key double-quoted, every pair colon-separated, every element comma-delimited — except the last, where a trailing comma breaks the parse. The quote-word-quote-colon rhythm (`"name": `) repeats for every field, and nested objects stack closing braces and brackets in sequences (`}]}`) that demand bracket-matching awareness while typing.

YAML swaps braces for indentation and adds its own vocabulary: the dash-space list marker (`- uses:`), bare keys with colons, and multi-level nesting where two spaces of drift changes meaning entirely. Real-world YAML — GitHub Actions workflows, docker-compose services — mixes both styles with inline arrays (`[push, pull_request]`) and quoted port mappings (`"3000:3000"`). Typing configs accurately the first time saves the debug cycle a stray character causes.

Key Drills for JSON & YAML:

  • Quote-colon rhythm: JSON keys follow `"key": ` exactly. Make quote-word-quote-colon-space one continuous motion.
  • Dash-space lists: YAML list items start `- ` — drill the marker so sequences flow line to line.
  • Watch the closers: Practice `}]` and `}}` stacks. Deep JSON nesting closes in bursts that cause most config typos.

Sample Drill: JSON Config Object

Nested JSON with arrays, strings, and boolean flags.

json-package · easy
{
  "name": "devtype-api",
  "version": "2.1.0",
  "private": true,
  "scripts": {
    "dev": "node --watch server.js",
    "test": "vitest run --coverage"
  },
  "keywords": ["typing", "developers"]
}

All 15 JSON & YAML Drills

Every session picks a random drill from this pool. Use the difficulty filter above to stay on easy warm-ups or jump straight to the hard ones.

  • JSON Config Object easy

    Nested JSON with arrays, strings, and boolean flags.

  • npm Scripts Block easy

    A package.json scripts section for a Vite and Vitest project.

  • Prettier Config easy

    A .prettierrc with style options and a Markdown override.

  • Dependabot Updates easy

    Weekly npm and Actions updates with grouped dev dependencies.

  • VS Code Settings easy

    Workspace settings.json enabling format and ESLint fixes on save.

  • YAML CI Pipeline medium

    GitHub Actions workflow with steps and matrix syntax.

  • Strict tsconfig medium

    Node ESM compiler options with strict index checks and path aliases.

  • Actions Test Matrix medium

    GitHub Actions job running tests across operating systems and Node versions.

  • Package Exports Map medium

    Dual ESM and CommonJS entry points with bundled type definitions.

  • YAML Anchors and Merge medium

    Share database defaults across environments with anchors and merge keys.

  • Docker Compose Services hard

    Compose file with services, ports, volumes, and env vars.

  • OpenAPI Path Item hard

    A GET operation with a UUID path parameter and referenced responses.

  • OpenAPI Schema Object hard

    An Order component schema with required fields, enums and array refs.

  • Tag Release Workflow hard

    Publish to npm with provenance when a version tag is pushed.

  • JSON Schema Validation hard

    Draft 2020-12 schema with patterns, ranges, oneOf and local defs.

The Symbols That Slow You Down

The keystrokes below are where JSON & YAML typing speed is won or lost. Key positions shown for QWERTY — the pattern transfers to any layout, just on different physical keys.

Symbol Used For Keys How to Drill It
"key": Quoted key pair Quotes as Shift+Apostrophe, then : as Shift+Semicolon JSON's core rhythm: quote-word-quote-colon-space. It repeats for every field, so it must be one continuous motion.
}] Nesting closers } as Shift+], ] as Shift+[ Deep objects close in bursts — `}]}`, `}}`, `]}]`. Bracket-matching while typing is a trained skill.
, Element separator Unshifted comma Everywhere except the last element — where a trailing comma breaks the parse. Know when NOT to type it.
- YAML list item - unshifted, then space The dash-space marker starts every list entry. Consistent rhythm keeps YAML indentation honest.
# YAML comment Shift+3 Comments in config files. Shift-3 mid-edit shouldn't break your indentation flow.
--- Document separator Three hyphens Opens YAML documents and front matter. Three even hyphen strikes.

Common JSON & YAML Typing Mistakes

  • ✗ Trailing commas in JSON — the parse breaks exactly where your typing rhythm says a comma belongs.
  • ✗ Indentation drift in YAML: two spaces change meaning, so type structure deliberately, not by feel.
  • ✗ Quote-style confusion: JSON demands double quotes, YAML accepts both — drill them as separate dialects.

What's a Good JSON & YAML Typing Speed?

Config typing is about accuracy more than speed: 25–40 WPM with 98%+ accuracy is the goal. A single wrong character in CI YAML costs a re-push and a re-run — accuracy is the metric that matters here.