Skip to main content

format_value

Function format_value 

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

Render a value for a failure message: JSON where possible, so the text lines up with how the fixture wrote it, with -0 spelt -0 and the values JSON cannot spell written as JavaScript names them.