docs: function setJsonField(json, field, value) {
      if (value === undefined && typeof value === 'undefined') {
          //Ignore undefined values
          return;
      }
      if (value === null) {
          //Ignore null values
          return;
      }
      if (typeof value === 'boolean' && value === false) {
          //Ignore false values since they are generally default values.
          return;
      }
      json[field] = value;
  }