skip to Main Content

Cannot parse nested json file

Trying to parse nested json that contains a element named 'weather'. I run into errors with in the line: try decoder.decode(WeatherClass.Top.self, it errors out. However if I remove the weather element from struct definition then it works. Don't know how…

VIEW QUESTION

JSONDecodeError: Extra data

I'm trying to convert a payload into json but I get the a JSONDecodeError: Extra data error. I need them to be 3 separate payloads to be posted to an API. "data": { "CustomerID": "15263", "Timestamp": "2023-07-28T17:08:23Z", "Status": "networkOk" }…

VIEW QUESTION
Back To Top
Search