Given this struct:

```swift
public struct Error: Codable {
    public let code: String
    public let message: String
    public let params: [String: String]?
}

```

And this JSON:

```
[
  {
    "message" : "The requested user could not be found.",
    "params" : [],
    "code" : "requested_user_not_found"
  }
]

```

Is there a way to decode this using the JSONDecoder() class in Swift? The `params` key is supposed to be a dictionary, but due to the way the external API which produces this JSON is implemented (in PHP), empty dictionaries are rendered in JSON as empty arrays.

At the moment, attempting to decode the provided JSON into an instance of the provided struct results in an error being thrown.