code: String toJsonString(CryptoMode mode) {
          return mode == CryptoMode.EncryptionOnly && !usesKMSKey()
                 ? toJsonStringEO() : toJsonString();
      }
docs: Returns the json string in backward compatibility (old) format, so it can
  be read by older version of the AWS SDK.