unfortunately, KeyValuePairs
is not a good payload type, because it does not support a lot of useful RangeReplaceableCollection
APIs, like append(_:)
. this isn’t that important for decoding, but it can be a hindrance when serializing JSON, since you would have to build an array and then copy it into KeyValuePairs
storage.