/JSONCoding

This is a static library to encode objects to JSON, and decode them back.

Primary LanguageObjective-C

What is JSONCoding?

This is a static library which can be used for iOS/Mac applications to convert objects to JSON and convert JSON to objects. This is not only for Foundation objects but any custom object that implements the NSCoding protocol.

  • It will convert complex objects to a dictionary of Foundation objects, then use NSJSONSerialization to convert the created dictionary to JSON.

  • Same for decoding, it will use the NSJSONSerialization to get the dictionary representing the object, then it will build the complex object from it.

How do I add JSONCoding to my project?

  • This is a static library, clone it then use steps here to add to your project.