Install TOON for Gleam

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

Community

Installation

Add the official toon_codec package to your project

gleam add toon_codec

Usage Example

Quick start guide for encoding and decoding TOON format in Gleam

import toon

pub fn main() {
  let data = output_value
  toon.encode(data)
}

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.