This blog post shows how to add a custom logic to a REST API invocation for jQuery Mobile apps.
- Add new
Successevent of your datasource.
- Using the drag and drop, move this action to the very beginning, so the
Mappingaction will be right to the
- Click on
- Write your custom logic to modify the response data. For example, to remove the first item of the response array (works only for arrays, not for JSON objects) use the following code:1data.splice(0, 1);