check the data format in Swift coming from Rest API

If you want to check the data fromat coming out from the REST API, you can use the following code