I have a json which is array of dictionary
response.text = [{
"id": "4635465675",
"name": "Arts",
"pluralName": "Arts",
"shortName": null
}]
json = JSON((response.text)?.data(using: .utf8))
How can i check is value for key "shortName" null or not, say for first dictionary in the array ?
I tried to do like this
if json[0]["shortName"] is NSNull
But it's always true. How can i handle it?