couchbaselabs / CouchCocoa

Objective-C API for CouchDB on iOS and Mac OS
http://couchbaselabs.github.com/CouchCocoa/docs/
218 stars 66 forks source link

Incorrect flag passed #79

Closed mattbond closed 10 years ago

mattbond commented 10 years ago

A NSJSONReadingOptions was being passed to NSJSONSerialization dataWithJSONObject instead of a NSJSONWritingOptions constant. The only NSJSONWritingOptions constant available is NSJSONWritingPrettyPrinted which does not make sense for productive code so I have passed zero. See: https://developer.apple.com/library/ios/DOCUMENTATION/Foundation/Reference/NSJSONSerialization_Class/index.html#//apple_ref/c/tdef/NSJSONWritingOptions