Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 462 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 462 Bytes

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])