Returning the response as json