Skip to content

ModelRocket 1.2.4

Compare
Choose a tag to compare
@jlandon jlandon released this 13 Feb 05:03
· 6 commits to master since this release

Added

  • RawRepresentable conformance to JSON
    • This includes a failable initializer with a single AnyObject argument and a compute property named rawValue of type AnyObject
  • Function for converting a JSON object back to raw NSData
do {
   let data = try json.rawData(.PrettyPrinted)
   // do something with data
} 
catch let error = JSON.DataError {}
catch {}