Skip to content

MAML

Minimal. Human-readable. Machine-parsable.

maml
{
  project: "MAML"
  tags: [
    "minimal"
    "readable"
  ]

  # A simple nested object
  spec: {
    version: 1
    author: "Anton Medvedev"
  }

  # Array of objects with nested objects
  examples: [
    {
      json: {
        name: "JSON"
        born: 2001
      }
    }
    {
      maml: {
        name: "MAML"
        born: 2025
      }
    }    
  ]

  notes: """
This is a multiline strings.
Keeps formatting as-is.
"""
}

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 strings
  3. Optional commas
  4. Optional key quotes

MAML is human-readable and easy to parse.

FAQ

  1. What’s the difference between MAML and JSONC/JSON5?

Implementations

MAML is a brand-new language, so feel free to create new implementations following the specification.