Skip to main content

render_value

Function render_value 

Source
pub fn render_value(value: &Value) -> String
Expand description

Renders a JSON value for display inside a message.

Strings are single-quoted; numbers, booleans, and null render as their bare literal. Arrays and objects recurse so their nested strings are single-quoted too, unlike serde_json::to_string, which would emit double quotes and force \" escaping in the final JSON report.