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

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

Parses a slice of bytes into a Value dom. This function will rewrite the slice to de-escape strings. We do not keep any references to the raw data but re-allocate owned memory whereever required thus returning a value without a lifetime.