public static IDictionary<string, JsonData> GetMap(this JsonData self)
{
var result = new Dictionary<string, JsonData>();
if (self != null || self.IsObject)
{
foreach (var key in self.PropertyNames)
{
result[key] = self.SafeGet(key);
}
}
return result;
}