change http json from trails to trail