JSON

public struct JSON

JavaScript Object Notation

  • JSON value type. Guarenteed to be valid JSON if root value is array or object.

    See more

    Declaration

    Swift

    public enum Value: RawRepresentable, Equatable, CustomStringConvertible
  • Parses JSON from a string.

    Declaration

    Swift

    init(string: Swift.String) throws
  • Undocumented

    Declaration

    Swift

    public struct JSON
  • Errors raised while parsing JSON data.

    See more

    Declaration

    Swift

    public enum ParseError: ErrorType
  • Errors raised while serializing to a JSON string

    See more

    Declaration

    Swift

    public enum SerializeError: ErrorType
  • Returns a String version of the error which can be logged. Not currently localized.

    Declaration

    Swift

    public var description: String