REFACTOR: move JSON configuration to http.