private string GenerateJson(List<JsonFeatureWithMetaInfo> features)
{
var data = new
{
Features = features,
Summary = this.GenerateSummary(features),
Configuration = new
{
SutName = this.configuration.SystemUnderTestName,
SutVersion = this.configuration.SystemUnderTestVersion,
GeneratedOn = DateTime.Now.ToString("d MMMM yyyy HH:mm:ss")
}
};
var settings = new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
NullValueHandling = NullValueHandling.Ignore,
Converters = new List<JsonConverter> { new StringEnumConverter() }
};
return JsonConvert.SerializeObject(data, Formatting.Indented, settings);
}