I am getting the following error :
The data couldn’t be read because it is missing.
When I run the following code:
struct Indicator: Decodable {
Try printing the actual error instead of just the description. It should give you a message like "No value associated with key someKey (\"actual_key_if_you_defined_your_own\").", which is much more useful than the localizedDescription.
"No value associated with key someKey (\"actual_key_if_you_defined_your_own\")."
localizedDescription