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