Changed the Request object for dealing with request data as JSON