Case-Insensitive JObject[sProperty] Access?

Dec 11, 2009 at 9:56 PM

Wow is this library every awesome !!

So I have some variation in the data coming into my client which uses Json.NET.

Is there a way to set some sort of mode to be case insensitive like you can with dictionary keys?


using
System.Collections.Generic; Dictionary<string, string> list = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); list.Add("A", "Value"); if (list["A"] != null) { Console.WriteLine("A can be A"); } if (list["a"] != null) { Console.WriteLine("a can also be A"); }