Skip to content

Instantly share code, notes, and snippets.

I hate github!

Moslem moslem-hady

I hate github!
View GitHub Profile
randyburden / BooleanJsonConverter.cs
Created Jul 4, 2013
A Json.NET JsonConverter that can handle converting the following values into boolean values: true, false, yes, no, y, n, 1, 0.
View BooleanJsonConverter.cs
using System;
using Newtonsoft.Json;
namespace JsonConverters
/// <summary>
/// Handles converting JSON string values into a C# boolean data type.
/// </summary>
public class BooleanJsonConverter : JsonConverter