Cleanup route json.