Install TOON for Lua / Neovim

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

Community

Installation

Add the official toon.nvim package to your project

use 'thalesgelinger/toon.nvim'

Usage Example

Quick start guide for encoding and decoding TOON format in Lua / Neovim

local toon = require('toon')
local str = toon.encode({name = "Alice"})
print(str)

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.