pub fn parse_registry_list(bytes: &[u8]) -> Result<Vec<Value>, ServiceError>Expand description
Convenience wrapper: parse bytes as an array and return elements.
Errors if the root value is not an array.
§Examples
use openstranded_common_wasmcontract::parse_registry_list;
let bytes = b"[ItemDef(id: 1), ItemDef(id: 2)]";
let items = parse_registry_list(bytes).unwrap();
assert_eq!(items.len(), 2);