Remove diagnostic attributes warningCount and errorCount from JSON