public static string SerializeChangedTrackersWithPath( this ITrackable trackable, JsonSerializerSettings jsonSerializerSettings) { var pathToChangeMap = trackable.GetChangedTrackersWithPath().ToDictionary(x => x.Key, x => x.Value); return(JsonConvert.SerializeObject(pathToChangeMap, jsonSerializerSettings)); }