Skip to content

MAML

JSON with comments, unquoted keys, optional commas, and multiline strings.

Rationale

JSON is the most popular data-interchange format. But it isn't a very good configuration language.

MAML keeps JSON’s simplicity and adds only the needed bits for a good configuration language:

  1. Comments
  2. Multiline raw strings
  3. Optional commas
  4. Optional key quotes
  5. Ordered key-value objects

MAML is human-readable and easy to parse.

Editor Support

Tools

  • mx – a CLI tool for pretty printing and querying MAML files
  • to-maml – a CLI tool for converting to MAML

Implementations

Follow the specification for creating new implementations.

Projects Using MAML

  • google/zx – A tool for writing better scripts
  • Envi – Environment file management
  • Tachi Code – Browser-native code editor
  • Deployer – A deployment tool for PHP

Add your project too

FAQ

  1. What’s the difference between MAML and JSONC/JSON5?
  2. Why not Zig-style multiline?
  3. What about YAML?