To implement an extended toolbox application, you need to implement a portal component that provides the data to display in the extended toolbox. To do this, you use the JSON List API. The JSON List API, which is contained in the com.sap.portal.navigation.json.list package, enables you to create and consume portal components that expose lists of data that are represented as JSON objects. A JSON List component returns an ordered list of items and folders that contain items. The order of the list is defined by the insertion order (first in, first out).
The following example demonstrates how to use the JSON List API to implement an extended toolbox application that displays a list of documents.
The example shows how a single application can handle two scenarios, according to the content type of the request (MIME type). If the content type is application/json , then the getJSONList method is called; otherwise, the doContent method of the portal component is called. An example of such usage exists in the toolbox: if the value of the application's Mobile Perspective property is set to Toolbox Extended , a request for a JSON object attribute is made, whereas if the value is set to Toolbox , a standard call is made to the doContent method of the portal component.