π¨
Human-friendly
Quotes optional for keys, trailing commas, comments, and clean syntax.
A human-friendly extension of JSON with quality-of-life improvements, extra types, and semantic identifiers.
Duper excels in a variety of use cases:
UserProfile({
id: Uuid("f111c275-b4ce-4392-8e5b-19067ce39b53"),
username: "EpicEric",
email: EmailAddress("eric@duper.dev.br"),
settings: {
"dark mode": true,
language: LanguageAlpha2("en"),
},
avatar: Png(b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR"),
bio: r#"Hello! I'm a super "duper" user!"#,
last_logins: [
(IPv4Address("192.168.1.100"), DateTime("2024-03-20T14:30:00Z")),
],
})| Feature | JSON | JSON5 | TOML | YAML | Duper |
|---|---|---|---|---|---|
| Comments | β | β | β | β | β |
| Trailing commas | β | β | β | β | β |
| Unquoted keys | β | β | β | β | β |
| Unambiguous | β | β | β οΈ | β | β |
| Identifiers | β | β | β | β | β |
| Tuples and bytes | β | β | β | β | β |
| Raw strings | β | β | β | β οΈ | β |
| Simplicity | β | β | β | β | β οΈ |
| Popularity | β | β | β | β | β |