Decode TOON back to JSON
demo_decode_toonParse TOON text into JSON and return a canonical serialization to verify lossless round-trip encoding against the original.
Instructions
Parses TOON text into a JSON value and returns it, together with a canonical serialisation for comparing against the original — the way to prove an encode_toon round trip is lossless. Use it on text this server produced or on a stored TOON document; to produce such text use encode_toon, and to compare formats rather than parse use compare_formats. ...
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toon | Yes | TOON-encoded text, one document per call, with its original indentation; tabs are treated as indent levels. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decoded | Yes | The parsed value: a JSON document of any type. | |
| round_trip | Yes | That value re-serialised as JSON, keys sorted. |