Description
KSON is a configuration file format that aims to combine the readability of YAML with the robustness of JSON. The project describes it as a love letter to the people who maintain computer configurations. It is clean and readable like YAML, without whitespace sensitivity, and robust and efficient like JSON, with a better syntax. Every valid JSON file is already valid KSON, so migration can be quick. You can write a file in one of four formatting modes: plain, a YAML-like style for editing; delimited, with explicit brackets for safe copy and paste; compact, for minified transport and storage; and classic, which is JSON with comments preserved. Embed blocks let you include code and complex content cleanly, and error messages give the exact line and column. There is editor support for VS Code, JetBrains IDEs and LSP-based editors, and KSON is type-safe, with full JSON Schema support. The library is built with Kotlin Multiplatform and offers JVM and JS libraries plus a GraalVM native library, and the site says it can be used from Rust and Python. The code is on GitHub. It suits developers who maintain configuration files by hand and want fewer whitespace and comma errors.…
Highlights
- Readable like YAML, robust like JSON
- Four formatting modes
- Embed blocks for code and content
- Editor support for VS Code and JetBrains
- Full JSON Schema support
Ratings & Reviews
No ratings yet
Be the first to rate KSON.org.
People also visit
KSON.org FAQ
What is KSON?
A configuration file format that combines the readability of YAML with the robustness of JSON.
Is a JSON file valid KSON?
Yes. The site says every valid JSON file is already valid KSON.
Which editors support it?
VS Code, JetBrains IDEs and LSP-based editors.
Where is the source?
On GitHub, in the kson-org/kson repository.
What are the best KSON.org alternatives?
Popular alternatives to KSON.org include Confetti Configuration Language, Kaitai Struct Webide and Svelte Jsoneditor. See all KSON.org alternatives

.png?auto=compress&fit=max&w=128)



