Structs

The following structs are available globally.

  • A pure Swift JSON parser. This parser is much faster than the NSJSONSerialization-based parser (due to the overhead of having to dynamically cast the Objective-C objects to determine their type); however, it is much newer and has restrictions that the NSJSONSerialization parser does not. Two restrictions in particular are that it requires UTF-8 data as input and it does not allow trailing commas in arrays or dictionaries.

    See more

    Declaration

    Swift

    public struct JSONParser
  • Struct for attempting to detect the Unicode encoding used with the data supplied to the JSONParser

    See more

    Declaration

    Swift

    public struct JSONEncodingDetector