converted 'routes' to JSON