using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization.Formatters;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public string foobar1 { get; set; }
public string foobar2 { get; set; }
public string foobar3 { get; set; }
public string aReallyBigInteger { get; set; }
public static void Test()
"foobar2": 0.0000000000000000001000,
"aReallyBigInteger" : 1111199999999999999999999999999999999911111
var model = JsonConvert.DeserializeObject<Model>(json);
var json2 = JsonConvert.SerializeObject(model, Formatting.Indented);
Console.WriteLine(json2);
public static void Main()
Console.WriteLine("Environment version: {0} ({1}), {2}", System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription , Environment.Version, Environment.OSVersion);
Console.WriteLine("{0} version: {1}", typeof(JsonSerializer).Namespace, typeof(JsonSerializer).Assembly.FullName);
Console.WriteLine("Failed with unhandled exception: ");