convert an object to JSON in objective c

172 views Asked by At

I work in tool theos projects and i want convert an object into JSON.

I need a easy to use library with examples for converting NSObjects to JSON and back again I check a lot of question like this but i can't use them. I use JSONModel library but i have a lot of errors.

Anybody body have a good tutorial or a sample code to convert NSObject to JSON?

I don't have any idea whether I can created a json or not.

How can I fix this?

1

There are 1 answers

2
DimasSup On

Look at my library - https://github.com/DimasSup/BaseMangedObjectModel With it you can serialize/deserialize any your class. aslo can save it to SQLite database if needed. Also there are NetworkHelper class which help you send/receive your classes from remote server.