fix default parameter
use $app->json to have the right response created