This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
2.0 API #8
Comments
calebd
added a commit
that referenced
this issue
Nov 19, 2015
calebd
added a commit
that referenced
this issue
Nov 19, 2015
`DecoderType` is a new protocol that better encapsulates the idea of decoding an object from a given `JSON`. It allows for two abilities that `JSONDecodable` did not: 1) Multiple decoders for the same type can be defined. This is illustrated by the two `NSDate` decoders provided by Alexander. 2) The decoder type is separate from the type being decoded. `JSONDecodable` is now deprecated.
calebd
added a commit
that referenced
this issue
Nov 20, 2015
calebd
added a commit
that referenced
this issue
Nov 20, 2015
calebd
added a commit
that referenced
this issue
Nov 20, 2015
It acceps a `SequenceType` of `Value`. Though to be fair I'm not sure if this would be better as an extension to `SequenceType` instead.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to clean up the API and release a 2.0.
string
andbool
properties that use common type names tostringValue
andboolValue
DecoderType
and deprecateJSONDecodable
EncoderType
and deprecateJSONEncodable
arrayValue
anddictionaryValue
properties that expose the raw object as[AnyObject]?
and[String: AnyObject]
respectivelyThe text was updated successfully, but these errors were encountered: