Hi,
I have been given an api which outputs the following
"{\"statusCode\": 200, \"headers\": {\"Access-Control-Allow-Origin\": \"*\"}, \"body\": [{\"ID\": 29, \"ColumnAID\": 12, \"ColumnB\": \"Blah\", \"ColumnC\": \"\", \"ColumnD\": \"Not Listed\", \"ColumnE\": null, \"ColumnF\": null, \"lat\": null, \"lon\": null}, {\"ID\": 22, \"ColumnAID\": 12, \"ColumnB\": \"Blah\", \"ColumnC\": \"\", \"ColumnD\": \"Canberra\", \"ColumnE\": \"ACT\", \"ColumnF\": null, \"lat\": null, \"lon\": null}, {\"ID\": 24, \"ColumnAID\": 12, \"ColumnB\": \"Blah\", \"ColumnC\": \"\", \"ColumnD\": \"Bondi Junction\", \"ColumnE\": \"NSW\", \"ColumnF\": null, \"lat\": null, \"lon\": null}, {\"ID\": 25, \"ColumnAID\": 12, \"ColumnB\": \"Blah\", \"ColumnC\": \"\", \"ColumnD\": \"Broadway\", \"ColumnE\": \"NSW\", \"ColumnF\": null, \"lat\": null, \"lon\": null}, {\"ID\": 26, \"ColumnAID\": 12, \"ColumnB\": \"Blah\", \"ColumnC\": \"\", \"ColumnD\": \"Castle Hill\", \"ColumnE\": \"NSW\", \"ColumnF\": null, \"lat\": null, \"lon\": null}]}"
My objective is to place the 9 columns in a Tableview.
Ive been following some tutorials that use JSONDecoder as well as URL Session.
My 1st question is around the start of this JSON. (ie before the \"body")
Will this effect JSONDecoder's ability to just output the results I need?
Thanks in advance
Todd