pub fn wave_obj_to_value<T: WaveObj>(obj: &T) -> Value
Serialize any WaveObj to a serde_json::Value, including the “otype” field. This matches Go’s obj.ToJsonMap() — used by GetObject/GetObjects responses.
obj.ToJsonMap()