|
I am getting an error trying to fetch data using Square's customer API.
Here is an example of the returned data:
And this is what I have for the model currently:
|
|
I have use "Ducky" (helper for JSON) and got this
If you use. You able to use camelCase
|
|
|
|
Here is the code that decodes the JSON:
|
|
The problem is that you use:
but the key in the JSON is |
SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.