From Json - CSharp System.Runtime.Serialization.Json

CSharp examples for System.Runtime.Serialization.Json:Json

Description

From Json

Demo Code


using System.Web.Script.Serialization;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//  www  .  ja  v a  2  s .com

public class Main{
        public static T FromJson<T>(string json)
        {
            return new JavaScriptSerializer().Deserialize<T>(json);
        }
}

Related Tutorials