任何机构都可以帮助我快速解码多维json数组。
json:
{
"0": { "key":"value","key2":"value2","key3":"value3" },
"1": {"key":"value","key2":"value2","key3":"value3"},
"2": {"key":"value","key2":"value2","key3":"value3"}
}
答案 0 :(得分:1)
您可以尝试
let res = try? JSONDecoder().decode([String:[String:String]].self,from:jsonData)