Examples

Real-world configuration files written in MSN alongside their JSON output.

A typical application configuration file with server settings, database, and feature flags.

app-config.msnMSN
# Application Configuration
- app
-- name: my-awesome-app
-- version: 2.1.0
-- debug: false
- server
-- host: 0.0.0.0
-- port: 8080
-- cors
--- enabled: true
--- origins
---- * https://example.com
---- * https://app.example.com
- database
-- driver: postgres
-- host: db.internal
-- port: 5432
-- name: myapp_prod
-- pool
--- min: 5
--- max: 20
- features
-- * authentication
-- * rate-limiting
-- * websockets
app-config.jsonJSON
{
  "app": {
    "name": "my-awesome-app",
    "version": "2.1.0",
    "debug": false
  },
  "server": {
    "host": "0.0.0.0",
    "port": 8080,
    "cors": {
      "enabled": true,
      "origins": [
        "https://example.com",
        "https://app.example.com"
      ]
    }
  },
  "database": {
    "driver": "postgres",
    "host": "db.internal",
    "port": 5432,
    "name": "myapp_prod",
    "pool": { "min": 5, "max": 20 }
  },
  "features": [
    "authentication",
    "rate-limiting",
    "websockets"
  ]
}