Skip to main content

decode

Function decode 

Source
pub fn decode(toon: &str) -> Result<String>
Expand description

Decode a TOON string back into JSON format.

Takes a valid TOON string and returns the compact JSON representation. The output is minified (no pretty-printing) — use serde_json::to_string_pretty on the result if human-readable JSON is needed.