CSharp · Console
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class Program
{
public static void Main()
{
var jsonString = "{\"method\":\"someMehtod\", \"content\":{\"oneObject\":\"can be a very complicated object\"}, \"somotherthing\":\"someOtherValue\"}";
var obj = JsonConvert.DeserializeObject<JObject>(jsonString);
Console.WriteLine(obj["method"]);
}
}