Swift swift4-2 Projects
The better way to deal with JSON data in Swift.Project mention: How does one decode this JSON data? | /r/iOSProgramming | 2023-02-23
I don’t think you are going to be able to use JSONDecoder to do what you are asking. I see the problem is that you need to create a struct that has all the property names (pokemon names) in it in order to use JSONDecoder (that’s a pain). You need to resort to “parsing” the JSON and constructing your own data model to satisfy your requirements. Something like this might help. https://github.com/SwiftyJSON/SwiftyJSON
Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.