CSharp · Console
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class Program
{
public class ResultType
{
public bool status { get; set; }
public string message { get; set; }
}
public static void Main()
{
var r = @"{""result"":{""status"":true,""message"":""Success""}}";
JObject jsonResponse = JObject.Parse(r);
JObject objResponse = (JObject)jsonResponse["result"];
ResultType _Data = Newtonsoft.Json.JsonConvert.DeserializeObject<ResultType>(jsonResponse.ToString());
Console.WriteLine(_Data.status);
}
}