[ad_1]
Requested
Seen
24 instances
I’ve simply come throughout an issue in Swift that I have not discovered an answer for:
Whenever you decode JSON knowledge (from an API) in Swift, you need to decode it utilizing JSONDecoder, however this forces me to call my variable identify precisely just like the JSON property that I wish to retrieve – the issue is, that the JSON-property’s identify has a splash in it (“saturated-fat_100g”). After all, I can not name my variable like that because of the sprint. Is there any workaround to this situation?
0
lang-swift
[ad_2]

