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

Adds JSON parsing methods to NSString. More...

#import <NSString+DBJSON.h>

Public Member Functions

(id) - JSONFragmentValue
 Returns the object represented in the receiver, or nil on error.
(id) - JSONValue
 Returns the NSDictionary or NSArray represented by the current string's JSON representation.

Detailed Description

Adds JSON parsing methods to NSString.

This is a category on NSString that adds methods for parsing the target string.

Member Function Documentation

- (id) JSONFragmentValue

Returns the object represented in the receiver, or nil on error.

Returns a a scalar object represented by the string's JSON fragment representation.

Deprecated:
Given we bill ourselves as a "strict" JSON library, this method should be removed.
- (id) JSONValue

Returns the NSDictionary or NSArray represented by the current string's JSON representation.

Returns the dictionary or array represented in the receiver, or nil on error.

Returns the NSDictionary or NSArray represented by the current string's JSON representation.


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