using Newtonsoft.Json.Linq;
public static void Main()
""acesso"": ""2016-04-22T19:10:00.2874904-05:00""
""acesso"": ""2016-04-22T19:10:00.2904923-05:00""
""acesso"": ""2016-04-22T19:10:00.2909925-05:00""
""acesso"": ""2016-04-22T19:10:00.2909925-05:00""
Console.WriteLine("--- Test run #1 with a known duplicate ---");
JArray array = JArray.Parse(json);
CheckForDuplicateNomes(array);
Console.WriteLine("\r\n--- Test run #2 with the duplicate removed ---");
CheckForDuplicateNomes(array);
private static void CheckForDuplicateNomes(JArray array)
array.Select(jt => jt["nome"]).ToDictionary(jt => (string)jt);
Console.WriteLine("No duplicates found!");
Console.WriteLine("There was at least one duplicate nome value in the array.");