Playground

Write MSN, see JSON output in real time — powered by the same compiler as @madsn/parser.

MSN is 25% smaller than the JSON output
input.msnMSN
280 chars19 lines~52 tokens
output.jsonJSON
{
  "app": {
    "name": "my-app",
    "version": "1.0.0",
    "debug": false
  },
  "server": {
    "host": "0.0.0.0",
    "port": 3000,
    "ssl": {
      "enabled": true,
      "cert": "/path/to/cert.pem"
    }
  },
  "database": {
    "driver": "postgres",
    "host": "db.example.com",
    "port": 5432
  },
  "features": [
    "auth",
    "api",
    "logging"
  ]
}
371 chars25 lines~28 tokens

MSN Characters

280

input

JSON Characters

371

output

Char Savings

25%

MSN vs JSON

Token Savings

approx. estimate

Quick Reference

- keyContainer (object)
-- key: valueKey-value pair
--- keyNested container
-- * itemArray element (scalar)
-- *Array element (object)
-- key: |Multiline block (preserves newlines)
-- key: >Multiline folded (joins lines)
# commentFull-line comment
-- key: value # cInline comment (space before #)
-- on: trueBoolean (true / false)
-- port: 3000Integer
-- pi: 3.14Float
-- x: nullNull
-- k: "hello"Quoted string