Added a request type handler for `json`.