Refactoring request details and json-editor directive