Something went wrong. Try again.
The format that's super! duper.dev.br
Something went wrong. Try again.
layout: home
hero: name: Duper text: The format that's super! tagline: A human-friendly extension of JSON with quality-of-life improvements, extra types, and semantic identifiers. image: src: /logos/duper.svg alt: Duper actions: - theme: brand text: Get started link: /quick-start - theme: alt text: View on GitHub link: https://github.com/EpicEric/duper
features:
- title: Hand-writing ergonomics details: Trailing commas, comments, and optional quotes for keys. icon: |
- title: Rich types details: Tuples, bytes, raw strings, Temporal, and proper integer support. icon: |
- title: Self-documenting details: Identifiers provide readability, debuggability, and optional validation. icon: |
- title: JSON-compatible details: Every valid JSON file is automatically valid Duper. icon: |
Why Duper? #
Duper excels in a variety of use cases:
- Configuration files: Duper's explicit types and comments serve as helpful guides when users need to modify values.
- REST APIs: Extended type support and self-documenting identifiers make Duper a natural fit for API responses.
- Logging: With a simple and readable syntax for logs, Duper is a breath of fresh air for both manual and tool-assisted debugging.
Playground #
Comparison #
| Feature | Duper | JSON | JSON5 | YAML | TOML | RON |
|---|---|---|---|---|---|---|
| Comments | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Trailing commas | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Unquoted keys | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ |
| Integers | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Tuples | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ |
| Bytes | ✅ | ❌ | ❌ | ✅[1] | ❌ | ✅ |
| Date and time | ✅[2] | ❌ | ❌ | ✅ | ✅ | ❌ |
| Raw strings | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Identifiers/tags | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ |
| Unambiguous | ✅ | ✅ | ✅ | ❌[3] | ⚠️[4] | ✅ |
| Simple | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
| JSON-compatible | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |
| Popular | ❌ | ✅ | ⚠️ | ✅ | ✅ | ⚠️ |
- [1] Using the
!!binaryscalar type; limited support in implementations. - [2] Fully compliant with the Temporal specification.
- [3] Unquoted strings can get confused with other scalars and vice-versa.
- [4] Tabs allowed in strings.