Languages

JSON Cheat Sheet

Print-ready cheat sheet for JSON, organized for fast lookup, study, and desk-side use

Source
JSON Specification (json.org)
License
MIT
Updated
2026-03-27

Sample

What's in this cheat sheet

  • Syntax
  • Data Types
  • Objects
  • Arrays
  • Nesting
  • Schema Validation
  • jq Basics
  • Common Patterns

Rules

{ }Object (unordered key-value pairs)
[ ]Array (ordered list of values)
"key": valueKeys must be double-quoted strings
No trailing commaLast item must not have a comma
No commentsJSON does not allow comments

Minimal Example

{
  "name": "Alice",
  "age": 30,
  "active": true
}

Download the full cheat sheet for all sections, formatted for print

Download PDF

Downloads

Choose the treatment that matches how you read