TOON is available in multiple languages. Choose your preferred ecosystem and start integrating TOON into your projects today.
Add the official ocaml-toon package to your project
opam install toon
Quick start guide for encoding and decoding TOON format in OCaml
let () = let data = [("name", `String "Alice"); ("age", `Int 30)] in print_endline (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.