Structs
The following structs are available globally.
-
A pure Swift JSON parser. This parser is much faster than the
See moreNSJSONSerialization
-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 theNSJSONSerialization
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.Declaration
Swift
public struct JSONParser
-
Struct for attempting to detect the Unicode encoding used with the data supplied to the JSONParser
See moreDeclaration
Swift
public struct JSONEncodingDetector