johnezang / JSONKit

Objective-C JSON
6.21k stars 1.66k forks source link

Custom Objects automatic conversion to Json #67

Open andrefmsilva opened 12 years ago

andrefmsilva commented 12 years ago

It would be great if custom objects can be mapped into JSON automatically. I've done this myself with an categorie for NSObject and using runtime Introspection, i can provide my code if wanted.

For mapping JSON strings in my custom objects i'm using https://github.com/MuhammadHewedy/ObjectMapper with some modifications and for now is working great! Parsing JSON to custom objects and create JSON from custom objects is much faster this way!!

dchohfi commented 12 years ago

I've made a framework that does the same, but with some cons. Checkout https://github.com/dchohfi/KeyValueObjectMapping