[][src]Function simd_json::value::borrowed::to_value

pub fn to_value<'a>(s: &'a mut [u8]) -> Result<Value<'a>>

Parses a slice of butes into a Value dom. This function will rewrite the slice to de-escape strings. As we reference parts of the input slice the resulting dom has the dame lifetime as the slice it was created from.