Install TOON for Clojure

TOON is available in multiple languages. Choose your preferred ecosystem and start integrating TOON into your projects today.

Community

Installation

Add the official toon package to your project

{:deps {vadelabs/toon {:mvn/version "..."}}}

Usage Example

Quick start guide for encoding and decoding TOON format in Clojure

(require '[toon.core :as toon])

;; Encode
(toon/encode {:name "Alice" :age 30})

;; Decode
(toon/decode "name: Alice
age: 30")

No code needed to try it: paste data into the JSON to TOON converter, compare token counts in the TOON token calculator, or read the TOON format guide.