JWJSONEncodable
@objc
public protocol JWJSONEncodable
Objects which need the ability to be converted into JSON conform to this protocol.
-
Calling this method converts the object into a
JSONObject
.Declaration
Swift
func toJSONObject() -> JSONObject
Return Value
A
JSONObject
representing this object. -
Calling this method converts the
JSONObject
into an object.Declaration
Swift
static func from(json: JSONObject) -> AnyObject?
Return Value
An object, or
nil
if it does not succeed.