iOS Question Solved: Expected: NSArray, object type: NSNull

b4auser1

Well-Known Member
Licensed User
Longtime User
I handle a json string returned from server.
json string can contain json array, or can not contain.
When there is no json array I have a problem.
map.ContainsKey("rows") returns true.
map.Get("rows") returns not List, but wrapper of NSNull.
Dim l_object As Object = map.Get("rows")
l_object <> null returns sometimes true, sometimes false.
How to handle this case ?

json string: {..., "rows":null}
 
Last edited:
Top