The Oracle ATG Web Commerce solution introduces a powerful dynamic page construction and layout system which mobile can use. However, it is not always possible for mobile applications to consume and use dynamic server responses as 'view ready' models.

You may need, for example, because of a business requirement, for mobile to extract specific models from the response and then manage them in a consistent manner. As a developer, it can be difficult to find the models you are looking for using traditional key/object traversals because the depth or the location of an object is not guaranteed.

JSONPath is a lightweight component used to find and extract relevant portions of JSON objects on the client. For example, you could leverage JSONPath extensions to retrieve specific leaf nodes by name, location, or other attribute. JSON paths can include filters, wildcards, and other tokens which you can combine for a powerful and reliable way to find the portions of a response you need.

You can easily extend any one of the components and use of the customizations that follow by overriding methods in the ATGJSONPathManager.


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