generate_swagger.sh now produces valid JSON directly (comma after last API method no longer appears)