Merge pull request #4749 from crobibero/guid-standard

(cherry picked from commit 933e7fa159)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
Bond-009
2020-12-10 21:53:32 +01:00
committed by Joshua M. Boniface
parent 5c0d930dc3
commit ddedb2d7f1
2 changed files with 20 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Globalization;
using System.Text.Json;
using System.Text.Json.Serialization;
@@ -19,7 +20,7 @@ namespace MediaBrowser.Common.Json.Converters
/// <inheritdoc />
public override void Write(Utf8JsonWriter writer, Guid value, JsonSerializerOptions options)
{
writer.WriteStringValue(value);
writer.WriteStringValue(value.ToString("N", CultureInfo.InvariantCulture));
}
}
}