Add a new helper method named json

The $app->json() method takes an array which will be converted to a json string.
The return type will be of Response