Rust serde deserializing a mixed array
问题 In Rust i am receiving data from a websocket. For simplicity it looks like this: [1, {"a": ["1.2345", 5, "9.8765"]}] The string i get from the websocket is indeed double-quoted 'floating point values' (thus in actuality strings), and unquoted integers. I want to deserialize this object into a struct. But since the return array "a" is of mixed type, I can't use something like: struct MyStruct { id: i32, a: [f64; 3], } So I thought let's define another struct: struct Ask { price: f64, whole_lot