Jsson Docs
Guides

Getting Started

Install JSSON and write your first configuration file in 5 minutes.

Installation

Download the binary

  • Get the latest release from GitHub for your platform.

Make it executable (Linux/macOS)

chmod +x jsson
sudo mv jsson /usr/local/bin/

Verify installation

jsson --version

Building from source? Clone the repo and run go build -o jsson cmd/jsson/main.go

Your First File

Create config.jsson:

app {
  name = "My App"
  version = "1.0.0"
  debug = true
}

server {
  host = "localhost"
  port = 8080
}

Transpile to JSON:

jsson -i config.jsson > config.json

Result:

{
  "app": {
    "name": "My App",
    "version": "1.0.0",
    "debug": true
  },
  "server": {
    "host": "localhost",
    "port": 8080
  }
}

Quick Syntax

FeatureJSSONJSON
Assignmentname = value"name": value
StringsJoão or "João""João"
Objectsobj { ... }"obj": { ... }
Arrays[a, b, c]["a", "b", "c"]
Comments// commentNot supported
Variablesx := 10Not supported

When to use quotes: Values with spaces or special characters need quotes.

name = João           // OK
title = "Software Engineer"  // Quotes for spaces

Output Formats

JSSON transpiles to multiple formats:

jsson -i config.jsson -f json   # Default
jsson -i config.jsson -f yaml
jsson -i config.jsson -f toml
jsson -i config.jsson -f ts     # TypeScript

Next Steps

On this page