NSObject(NSObject_SBJSON) Class Reference
Adds JSON generation to Foundation classes.
More...
List of all members.
|
Public Member Functions |
(NSString *) | - JSONFragment |
| Returns a string containing the receiver encoded as a JSON fragment.
|
(NSString *) | - JSONRepresentation |
| Returns a string containing the receiver encoded in JSON.
|
Detailed Description
This is a category on NSObject that adds methods for returning JSON representations of standard objects to the objects themselves. This means you can call the -JSONRepresentation method on an NSArray object and it'll do what you want.
Member Function Documentation
- (NSString *) JSONFragment |
|
|
|
|
This method is added as a category on NSObject but is only actually supported for the following objects:
- NSDictionary
- NSArray
- NSString
- NSNumber (also used for booleans)
- NSNull
- Deprecated:
- Given we bill ourselves as a "strict" JSON library, this method should be removed.
- (NSString *) JSONRepresentation |
|
|
|
|
This method is added as a category on NSObject but is only actually supported for the following objects:
The documentation for this class was generated from the following file: