Function encode
Source pub fn encode(
value: &Value,
options: Option<&EncodeOptions>,
) -> Result<String, Error>
Expand description
Encode a JSON value to TOON format
§Arguments
value - The JSON value to encode
options - Optional encoding options
§Returns
A Result containing the TOON-formatted string or an error