I am getting the following JSON back from a network request:
{ \"uvIndex\": 5 }
I use the fol
You could try SafeDecoder
import SafeDecoder internal struct CurrentWeatherReport: Codable { internal var uvIndex: Int? }
Then just decode as usual.