private string NormalizeKey(string key) { return key.EndsWith("[]") ? key.Substring(0, key.Length - 2) : key; }