Upgraded Json.Net version to 10.0.1
This commit is contained in:
parent
d21af1f26d
commit
9c5b33dd8a
|
|
@ -3,7 +3,7 @@
|
|||
<AspNetCoreVersion>1.2.0-*</AspNetCoreVersion>
|
||||
<CoreFxVersion>4.3.0</CoreFxVersion>
|
||||
<DependencyModelVersion>1.1.0</DependencyModelVersion>
|
||||
<JsonNetVersion>9.0.1</JsonNetVersion>
|
||||
<JsonNetBsonVersion>1.0.1</JsonNetBsonVersion>
|
||||
<MoqVersion>4.6.36-alpha</MoqVersion>
|
||||
<NetStandardImplicitPackageVersion>1.6.1</NetStandardImplicitPackageVersion>
|
||||
<RazorCodeAnalysisVersion>1.0.0-*</RazorCodeAnalysisVersion>
|
||||
|
|
|
|||
|
|
@ -48,9 +48,9 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
|
|||
Dictionary<string, object> tempDataDictionary = null;
|
||||
|
||||
using (var memoryStream = new MemoryStream(value))
|
||||
using (var writer = new BsonReader(memoryStream))
|
||||
using (var reader = new BsonDataReader(memoryStream))
|
||||
{
|
||||
tempDataDictionary = _jsonSerializer.Deserialize<Dictionary<string, object>>(writer);
|
||||
tempDataDictionary = _jsonSerializer.Deserialize<Dictionary<string, object>>(reader);
|
||||
if (tempDataDictionary == null)
|
||||
{
|
||||
return new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
|
||||
|
|
@ -145,7 +145,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
|
|||
|
||||
using (var memoryStream = new MemoryStream())
|
||||
{
|
||||
using (var writer = new BsonWriter(memoryStream))
|
||||
using (var writer = new BsonDataWriter(memoryStream))
|
||||
{
|
||||
_jsonSerializer.Serialize(writer, values);
|
||||
return memoryStream.ToArray();
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ Microsoft.AspNetCore.Mvc.ViewComponent</Description>
|
|||
<PackageReference Include="Microsoft.Extensions.PropertyActivator.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
||||
<PackageReference Include="Microsoft.Extensions.PropertyHelper.Sources" Version="$(AspNetCoreVersion)" PrivateAssets="All" />
|
||||
<PackageReference Include="Microsoft.Extensions.WebEncoders" Version="$(AspNetCoreVersion)" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="$(JsonNetVersion)" />
|
||||
<PackageReference Include="Newtonsoft.Json.Bson" Version="$(JsonNetBsonVersion)" />
|
||||
<PackageReference Include="System.Buffers" Version="$(CoreFxVersion)" />
|
||||
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="$(CoreFxVersion)" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue