Skip to content

Minimal Object Notation as an alternative to JSON

License

Notifications You must be signed in to change notification settings

santerijps/mion

Repository files navigation

mion

mion (Minimal Object Notation) is a clean and lean alternative to JSON, which is easily converted to JSON. It looks familiar to JSON with a minimalist syntax to ensure easy readability and a small footprint. As an additional feature, mion supports list schemas, which makes it delightful to declare lists without repetition.

# This is a comment!

name      "Alice"   # string
age       50        # number
is_adult  true      # boolean
naughty   null      # null

address { # White space is irrelevant
  country   "UK"
  city      "London"
  street    "123 Baker Street"
}

fruits [
  "apple"
  "banana"
  "orange"
]

people (id name age) [ # Schemas!
  1 "Alice" 50
  2 "Bob" 60
  3 "Charlie" 45
]

Usage

npm i @santerijps/mion