var tempJSON:JSON = ""
tempJSON = JSON(self.userdefaults.string(forKey: "currentOrder"))
print(tempJSON)
yields:
{"7": "1", "21": "0", "20": "0", "3": "1"}
I need to be able to loop through this and just can't. I've tried.
for(key,value) in tempJSON{
       print(key)
            }
and nothing outputs....
Thanks
 
     
     
    