I'm currently working with a bad designed JSON Api... This returns always a value (eg. String, Int, Double...) or false(not null).
What is the best way to handle this with decodable, as Any is not supported by Codable?
A key can look like this:
{
"key": "Test",
}
Or like this(I know, should be null instead of false):
{
"key": false,
}
And this is not possible:
struct Object: Decodable {
let key: Any?
}