Skip to main content

arbitrary_json_value

Function arbitrary_json_value 

Source
pub fn arbitrary_json_value(u: &mut Unstructured<'_>) -> Result<Value>
Expand description

Generates an arbitrary serde_json::Value. Nesting requires a “go deep” bool to be true (geometric distribution), so compound structures are exponentially rare. Collection sizes also use bool-per-element.