/STJSON

A JSON Parser in Swift 3 compliant with RFC 7159

Primary LanguageSwiftMIT LicenseMIT

STJSON

A JSON Parser in Swift 3 compliant with RFC 7159

STJSON was written along with the article Parsing JSON is a Minefield.

Basic usage:

var p = STJSONParser(data: data)

do {
    let o = p.parse()
} catch let e {
    print(e)
}

Instantiation with options:

    var p = STJSON(data:data,
                   maxParserDepth:1024,
                   options:[.useUnicodeReplacementCharacter])