For example I have a json
var json = JSON(data: data!)
inside it I reference to object
var list = json["OBJECT"]
is there a way, that I can check if it is an object, or array, or string and return bool ?
This doesnt help. var list
will always be type of JSON
. And I want to find a way to check what is inside.