Using NSJSONSerialization.JSONObjectWithData(..) we can create a JSON object. But is it possible to identify the object type ie. is it a JSON object or not.
I was just trying to check using Swift and XCTestFramework. I tried different ways but no solution still?
Note: After creation of JSON object, I can get the values and can also check the values. XCTest Framework is working fine to test those type of things. But, I stuck to identify the object type.
Anybody has any idea how to identify the JSON object programmatically using Swift and XCTest framework
Aucun commentaire:
Enregistrer un commentaire