JSONParser

public protocol JSONParser

Undocumented

  • Undocumented

    Declaration

    Swift

    func parseDictionary(from data: Data) throws -> JsonDictionary
  • Undocumented

    Declaration

    Swift

    func parseDictionaries(from data: Data) throws -> [JsonDictionary]
  • Undocumented

    Declaration

    Swift

    func parseObject<T>(_ type: T.Type, from data: Data) throws -> T where T : JSONDecodable
  • Undocumented

    Declaration

    Swift

    func parseObjects<T>(_ type: T.Type, from data: Data) throws -> [T] where T : JSONDecodable
  • Undocumented

    Declaration

    Swift

    func parseUser<UserType>(_ type: UserType.Type, from data: Data) throws -> UserType where UserType : User
  • Undocumented

    Declaration

    Swift

    func parseUsers<UserType>(_ type: UserType.Type, from data: Data) throws -> [UserType] where UserType : User
  • Undocumented

    Declaration

    Swift

    func parseUser<UserType>(_ type: UserType.Type, from dictionary: [String : Any]) throws -> UserType where UserType : User
  • Undocumented

    Declaration

    Swift

    func parseObject<T>(_ type: T.Type, from dictionary: [String : Any]) throws -> T where T : JSONDecodable
  • Undocumented

    Declaration

    Swift

    func toJSON<UserType>(_ user: UserType) throws -> [String : Any] where UserType : User
  • Undocumented

    Declaration

    Swift

    func toJSON<T>(_ object: T) throws -> [String : Any] where T : JSONEncodable
  • Undocumented

    Declaration

    Swift

    func toJSON<S, T>(_ sequence: S) throws -> [[String : Any]] where S : Sequence, T : JSONEncodable, T == S.Element