Been trying to get this to work in Swift 2.0, the error says:
Type NSJSONWritingOptions cannot conform to protocol NilLiteralConvertible
You can also pass an empty array for no options:
let options:NSJSONWritingOptions = prettyPrinted ? .PrettyPrinted : []