Use default options for Utf8JsonWriter (#1497)

This commit is contained in:
stefansjfw 2020-03-09 23:28:43 +01:00 committed by GitHub
parent 7ac378dcd3
commit 4dbe535e1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,11 +120,7 @@ namespace FancyZonesEditor.Models
try
{
FileStream outputStream = File.Open(Settings.AppliedZoneSetTmpFile, FileMode.Create);
JsonWriterOptions writerOptions = new JsonWriterOptions
{
SkipValidation = true,
};
using (var writer = new Utf8JsonWriter(outputStream, writerOptions))
using (var writer = new Utf8JsonWriter(outputStream, options: default))
{
writer.WriteStartObject();
writer.WriteString("uuid", "{" + Guid.ToString().ToUpper() + "}");