title: Foreach cannot operate on a 'method group' while iterating json array?
body: <p>I have a json as shown below -</p>
  <pre><code>   &quot;thothTest&quot;:{
        &quot;9876&quot;:[
           &quot;K&quot;
        ],
        &quot;5431&quot;:[
           &quot;A&quot;,
           &quot;L&quot;
        ],
        &quot;5123&quot;:[
           &quot;L&quot;
        ]
     }
  </code></pre>
  <p>This is how I get <code>thothTest</code> value. Now I am trying to print each key and their values by iterating json array. Like I want to print <code>9876</code> and its whole array by iterating it over them. Similarly for other entries.</p>
  <pre><code>var parsedthothTests = parsed[&quot;thothTest&quot;];
  foreach (var parsedthothTest in parsedthothTests)
  {
      Console.WriteLine(parsedthothTest); // this prints innermost array one by one
      foreach (var val in parsedthothTest.Values)
      {
  
      }
  }
  </code></pre>
  <p>In my innermost foreach loop it gives me error as - <code>Foreach cannot operate on a 'method group'. Did you intend to invoke the 'method group'?</code> What is wrong I am doing here?</p>