The ATGJSONPathManager is a simple interface you can use to fetch contents from a serialized JSON object given a JSON path. Callers do not need to know the underlying implementation of the path tokenizer and JSON parser since they are abstracted out into ATGJSONPathTokenizer and ATGJSONPathParser classes. ATGJSONPathManager returns content parsed into NSArray or NSDictionary objects based on the given path request. All methods are synchronous.

Since the manager implements the ATGJSONPathParserDelegate, any extensions of the manager can override the delegate’s method(s) to correctly handle your customizations.

Interface
// Method to obtain content from a JSON based on the given JSON path.
- (id) getContentForPath:(NSString *)path fromContent:(id)contentJSON;

// Returns the tokenizer that the ATGJSONPathManager uses to tokenize the JSON path
// from an NSString object to an NSArray of NSString objects. If the default
// tokenizer is ever extended for customization, this method must be overridden to
// return the custom tokenizer.
- (ATGJSONPathTokenizer *) getTokenizer;

// Returns the JSON parser that the ATGJSONPathManager uses to parse the given
// JSON and filter content based on the given path. If the default parser is
// extended for customization, this method must be overridden to return the custom
// parser.
- (ATGJSONPathParser *) getParser;

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices