modify the example to return JSON, add an extra matchRest call, trigger the Exception on some input