Return dynamic jsonobject from ASP.NET controller
<p>I'm trying to return a dynamic object deserialized from a json string. At runtime I don't know what the object looks like so I can't type it.</p>

<p>I've tried this:</p>

<pre><code>var json = @"[{""clientNumber"":""3052394"",""accountStatus"":""Active""},{""clientNumber"":""1700630"",""accountStatus"":""Active""}]";
dynamic result = JsonConvert.DeserializeObject(json);
return Json(result, JsonRequestBehavior.AllowGet);
</code></pre>

<p>But the result comes out like this: </p>

<pre><code>[[[[]],[[]]],[[[]],[[]]]]
</code></pre>

<p>I know I can do this:</p>

<pre><code>var result = new{...};
</code></pre>

<p>But this won't work an I don't know what the object is looking like at runtime.</p>