I have such a json
{
"i386": "iPhone Simulator",
"x86_64": "iPhone Simulator",
"arm64": "iPhone Simulator",
"iPhone1,1": "iPhone",
"iPhone1,2": "iPhone 3G",
"iPhone2,1": "iPhone 3GS",
"iPhone3,1": "iPhone 4",
"iPhone3,2": "iPhone 4 GSM Rev A",
"iPhone3,3": "iPhone 4 CDMA",
"iPhone4,1": "iPhone 4S",
"iPhone5,1": "iPhone 5 (GSM)",
"iPhone5,2": "iPhone 5 (GSM+CDMA)",
"iPhone5,3": "iPhone 5C (GSM)",
"iPhone5,4": "iPhone 5C (Global)",
"iPhone6,1": "iPhone 5S (GSM)",
....
}
which is just a json object of keys and values. I would like to parse that with the use of Flux.
code which doesn’t work. I looked through docs and tehre is no information how I can do it.
jsonRawString = "{\"i386\":\"iPhoneSimulator\",\"x86_64\":\"iPhoneSimulator\", ..."}"
jsonMap = json.parse(data: bytes(v: jsonRawString))
jsonMap