private static JsonSerializer CreateSerializer(JsonSerializerSettings settings) { settings.EnsureFormatting(); var serializer = JsonSerializer.Create(settings); return(serializer); }