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