- v1.0.0 and master22.214.171.124.04.2
- v1.0.0 and masteriOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Swift Dictionary Encoder, based off the JSON Encoder in Foundation
Swift Dictionary Encoder and Decoder, based off the JSONEncoder in Foundation.
Internally the JSONEncoder in the Swift Foundation creates a dictionary before encoding to JSON and the JSONDecoder works from a Dictionary parsed from JSON data. This encoding/decoding to and from a dictionary is hidden and not available to the user.
DictionaryEncoder is essentially the same as JSONEncoder but instead of returning JSON data, it returns the
Dictionary<String, Any> the JSON data would have been generated from. Likewise DictionaryDecoder is essentially the same as JSONDecoder except it's input is a