{
  "firebase": "<APP_ID>",
  "rules": "security-rules.json",
  "public": "./",
  "ignore": [
    "firebase.json",
    "**/.*",
    "**/node_modules/**",
    "functions"
  ],
  "functions": {
    // Directory must contain a function.js file that exports the Google Cloud Functions
    ".source": "functions",
    // [START trigger_rules]
    "makeuppercase": { // Must match a module export in your Node.js code
      "triggers": {
        "database": {
          "path": "/messages/$message",
          "condition": "!data.exists()" // Only run the GCF once on new messages
        }
      }
    }
    // [END trigger_rules]
  }
}

{
  "firebase": "<APP_ID>",
  "rules": "security-rules.json",
  "public": "./",
  "ignore": [
    "firebase.json",
    "**/.*",
    "**/node_modules/**",
    "functions"
  ],
  "functions": {
    // Directory must contain a function.js file that exports the Google Cloud Functions
    ".source": "functions",
    // [START trigger_rules]
    "makeuppercase": { // Must match a module export in your Node.js code
      "triggers": {
        "database": {
          "path": "/messages/$message", // Path of database objects that trigger the function
          "condition": "!data.exists()" // Only run once on new messages only
        }
      }
    }
    // [END trigger_rules]
  }
}

Add comments in the JSON file
Add comments in the JSON file
