Navigating through dynamic Object (json) in C#
<p>i'm getting a json from a HTTP GET request that looks like after parsing it with "NewtonSoft.Json":</p>

<pre><code>dynamic data = JsonConvert.DeserializeObject(responseString);
</code></pre>

<p>Where responseString is :</p>

<pre><code>{"name1":{"id":123456789,"name":"nickname","profileIconId":1114,"summonerLevel":30}}
</code></pre>

<p>As you see, the name changes everytime, and i was wondering how do I navigate through this like <code>data.name1.name</code> where name1 changes everytime.</p>

<p>And how do i do if the json looks like :</p>

<pre><code>{"name1":{"id":123456789,"name":"nickname","profileIconId":1114,"summonerLevel":30},"name2":{"id":123456789,"name":"nickname","profileIconId":948,"summonerLevel":30}}
</code></pre>