using System;
using Newtonsoft.Json;
public class Program
{
public static void Main()
string json = @"{
'Name': 'Ethan',
'FansCount': 121211,
'Price': 99.99
}";
Product m = JsonConvert.DeserializeObject<Product>(json);
Console.WriteLine(m.FansCount);
Console.WriteLine(m.FansCount.GetType().FullName);
Console.WriteLine(m.Price);
Console.WriteLine(m.Price.GetType().FullName);
}
public class Product
public string Name
get;
set;
public object FansCount
public object Price