Skip to main content

list_from_slice

Function list_from_slice 

Source
pub fn list_from_slice(bytes: &[u8], elem_ty: &Type) -> Result<Value, Error>
Expand description

Decode a JSON array (UTF-8 bytes) into a Value::List, using elem_ty as the per-element type.