title: C# building a string for JSON using variables
body: <p>I'm relatively new to C# and trying to deserialize a string from JSON for this value;  ["format"]["tags"]["ENCODER"]        </p>
  
  <pre><code>// Manually building the string works fine
  string test = (dict["format"]["tags"]["ENCODER"]);    
  
  string found_value = "";
  
  const char quote = '\u0022';
  
  string encoder = "[" + quote + "format" + quote + "][" + quote + "tags" + quote + "][" + quote + "ENCODER" + quote + "]";
  
  // Just as a test
  encoder = encoder.Replace("\u005c\u0022", "\u0022");   
  
  // This Fails   
  found_value = (dict[encoder]); 
  </code></pre>
  
  <p>It throws an exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll but was not handled in user code
  Additional information: The given key was not present in the dictionary.</p>
  
  <p>So I'm sure it's the way I'm passing the encoder string.  Probably something really simple but I've spent hours trying various things and become blind to it now.</p>
  
  <p>Thanks in advance</p>