using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
""Profile.Guestbook.Post"": {
""DigestSchedule"": ""00 * * * * *""
""Profile.MediaEntry.Post"": {
""DigestSchedule"": ""00 * * * * *""
var prefs = JsonConvert.DeserializeObject<Preferences>(json);
Console.WriteLine("Prefs:");
Console.WriteLine(ObjectDumper.Dump(prefs));
Console.WriteLine("\n\nTesting:");
Assert.That(prefs.Notifications[0].First().Key, Is.EqualTo("Profile.Guestbook.Post"));
Assert.That(prefs.Notifications[0].First().Value.TargetIntId, Is.EqualTo(1));
Assert.That(prefs.Notifications[0].First().Value.Digest, Is.EqualTo(true));
Assert.That(prefs.Notifications[0].Skip(1).First().Key, Is.EqualTo("Profile.MediaEntry.Post"));
Assert.That(prefs.Notifications[0].Skip(1).First().Value.TargetIntId, Is.EqualTo(1));
Assert.That(prefs.Notifications[0].Skip(1).First().Value.Digest, Is.EqualTo(true));
public List<Dictionary<string, NotificationInfo>> Notifications { get; set; }
public class NotificationInfo
public int TargetIntId { get; set; }
public bool Digest { get; set; }