DictionaryEncoder

1.0.0

Swift Dictionary Encoder, based off the JSON Encoder in Foundation
adam-fowler/dictionary-encoder

What's New

v1.0.0

2019-06-11T11:42:33Z

Initial Release

Dictionary Encoder

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 Dictionary<String, Any>.

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Mar 10 2024 04:16:40 GMT-0900 (Hawaii-Aleutian Daylight Time)