Hi @OOPer, thanks for your answer and explanation. I've tried it and it seems to be better, but now I get a similar error on the amount member: JSON-Error: typeMismatch(Swift.Double, Swift.DecodingError.Context(codingPath: [_JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "datapoints", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "amount", intValue: nil)], debugDescription: "Expected to decode Double but found a string/data instead.", underlyingError: nil))