JSONUtility Class Reference
Description
Represents an interface with convenience methods for dealing with JSON.
 - Defined in:
 -   JSONUtility.h  ( ArcGIS library) 
 
 - Since:
 - 1.0 
 
List of all members.
Member Function Documentation
      
        
          | + (NSMutableArray *) decodeFromDictionary:  | 
           | 
          (NSDictionary *)  | 
           json | 
        
        
          | withKey: | 
           | 
          (NSString *)  | 
           key | 
        
        
          | fromClass: | 
           | 
          (Class)  | 
           cls |   | 
        
        
           | 
           | 
           |  |  | 
        
      
 
Class method to decode an array from a dictionary. The decoded area will contain objects of type cls. 
- Parameters:
 - 
  
     | json  | The JSON dictionary to decode from.  | 
     | key  | The key to pull value to decode from.  | 
     | cls  | The type of objects to place in array.  | 
  
   
- Returns:
 - The array of decoded objects of type 
cls.  
- Since:
 - 1.0 
 
 
 
      
        
          | + (void) encodeToDictionary:  | 
           | 
          (NSMutableDictionary *)  | 
           json | 
        
        
          | withKey: | 
           | 
          (NSString *)  | 
           key | 
        
        
          | AGSCodingArray: | 
           | 
          (NSArray *)  | 
           items |   | 
        
        
           | 
           | 
           |  |  | 
        
      
 
Class method to encode an NSArray to a dictionary for a given key. 
- Parameters:
 - 
  
     | json  | The JSON dictionary to encode items to.  | 
     | key  | The key to place encoded array at.  | 
     | items  | The array to be encoded to JSON.  | 
  
   
- Since:
 - 1.0 
 
 
 
      
        
          | + (NSString*) getStringFromDictionary:  | 
           | 
          (NSDictionary *)  | 
           json | 
        
        
          | withKey: | 
           | 
          (NSString *)  | 
           key |   | 
        
        
           | 
           | 
           |  |  | 
        
      
 
Class method to retrieve an NSString from a dictionary for a given key. 
- Parameters:
 - 
  
     | json  | The JSON dictionary to pull string from.  | 
     | key  | The key to object in JSON dictionary.  | 
  
   
- Returns:
 - The string value of object at 
key.  
- Since:
 - 1.0