toonkit2
Type-SafeCompactHuman-ReadableMIT

toonkit2

A parser & serializer for TOON — Typed Object Oriented Notation. Transform JSON to compact TOON format and back with built-in type awareness.

$ npm install toonkit2
Docs → Postman Testing
🧪

Testing with Postman

Manual API testing with TOON payloads

Since TOON is plain text, testing is straightforward in Postman or any HTTP client. Follow these steps:

1
Set Method
Select POST or GET as needed
2
Add Header
Content-Type: text/plain
3
Raw Body
In Body tab, select raw → Text. Paste your TOON string.
4
Send
Hit Send. Response will be TOON text.

Example TOON Body

Postman Body (raw text)
device_id[1]{0:s}:
DEVICE_PRO_01

battery[1]{0:n}:
87

is_active[1]{0:b}:
true