Return int64 in json as number

This commit is contained in:
crobibero 2020-08-14 08:23:23 -06:00
parent 42a9feb2f3
commit 64658a0bd0

View File

@ -50,7 +50,7 @@ namespace MediaBrowser.Common.Json.Converters
/// <param name="options">Options.</param>
public override void Write(Utf8JsonWriter writer, long value, JsonSerializerOptions options)
{
writer.WriteStringValue(value.ToString(NumberFormatInfo.InvariantInfo));
writer.WriteNumberValue(value);
}
}
}