es-result--handle-response: Add a hook to be called when the response is json data.