Skip to content

adam-fowler/dictionary-encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>.

About

Swift Dictionary Encoder, based off the JSON Encoder in Foundation

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages