serialize your objective-c class to JSON representable object and vice versa.