pub fn generate_json_string(project_path: &Path) -> Result<String, String>
Scan routes and serialize to a pretty JSON string.