pub fn generate_json_diagnostics(
    diagnostics: &Diagnostics,
    include_warnings: bool
) -> String