Yini  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSObject(SBProxyForJson) Category Reference

Allows generation of JSON for otherwise unsupported classes. More...

#import <DBJsonWriter.h>

Public Member Functions

(id) - proxyForJson

Detailed Description

Allows generation of JSON for otherwise unsupported classes.

If you have a custom class that you want to create a JSON representation for you can implement this method in your class. It should return a representation of your object defined in terms of objects that can be translated into JSON. For example, a Person object might implement it like this:

- (id)jsonProxyObject {
return [NSDictionary dictionaryWithObjectsAndKeys:
name, @"name",
phone, @"phone",
email, @"email",
nil];
}

Member Function Documentation

- (id) proxyForJson

The documentation for this category was generated from the following file: