.

using System.Json for dynamic json

open your package manager console and type:

Install-Package System.Json -Version 4.0.20126.16343

add the reference to your code:

using System.Json;

and finally example usage:

var json = GetJson(input);
dynamic result = JsonValue.Parse(json);

What's your thoughts on this?

*

Protected by WP Anti Spam