pub fn render_string(payload: String) -> Result<String, Error>
Expand description

Render a Json String into Json String output. Shortcut for render(payload, “json”).

Arguments

  • payload: The JSON payload string to be rendered, following Dilla format API

Returns

  • Result<String, Error> - A Result containing the rendered JSON output as a String if successful, or an Error if any error occurs.