{ "type": "foo", "name": "aaa" }, { "type": "bar", "value": 123 }
enum MyData: Decodable { case foo(name: String) case bar(value: Int) }