public IDictionary <string, string> Serialize(object source, string rootSectionName) { var json = JsonConvert.SerializeObject(source); var jsonConfig = JObject.Parse(json); var visitor = new JsonVisitor(); return(visitor.ParseObject(jsonConfig, rootSectionName)); }