pub fn wave_obj_from_json<T: StoreObj>(data: &[u8]) -> Result<T, Error>
Deserialize JSON bytes to a specific StoreObj type. Does NOT validate the otype field — caller should verify if needed.