Simplifying NSJSONSerialization in Swift

While writing a pet project app in Swift I put together this convenience function that simplifies converting an NSData into JSON objects via the NSJSONSerialization class. My JSONObjectWithData function adds a Swift-friendly API on top of the Foundation method of the same name. Here is a Gist showing how it works and how to use it.

About Josh Smith

Josh Smith is a musician at heart, and a software developer by obsession. He lives in Arizona, plays classical music on the piano, jazz on the guitar, and enjoys brutally long rides on his bicycle. He has a wonderful wife & son and thinks that, in general, life is good.
This entry was posted in Swift and tagged , . Bookmark the permalink.

2 Responses to Simplifying NSJSONSerialization in Swift

  1. Pingback: Dew Drop – July 29, 2014 (#1824) | Morning Dew

  2. Pingback: Dew Drop – July 30, 2014 (#1825) | Morning Dew

Comments are closed.