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, it’s a must 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 touch in it (“saturated-fat_100g”). In fact, I am unable to name my variable like that because of the sprint. Is there any workaround to this subject?

0

user avatar