Skip to content

Commit

Permalink
replace Jil with Newtonsoft.Json
Browse files Browse the repository at this point in the history
  • Loading branch information
tonerdo committed Jul 12, 2018
1 parent 6872a35 commit a189fc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions src/coverlet.core/CoverageResult.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.Collections.Generic;
using System.IO;

using Jil;

namespace Coverlet.Core
{
public class BranchInfo
Expand Down
9 changes: 2 additions & 7 deletions src/coverlet.core/Reporters/JsonReporter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.IO;
using Jil;
using Newtonsoft.Json;

namespace Coverlet.Core.Reporters
{
Expand All @@ -11,11 +10,7 @@ public class JsonReporter : IReporter

public string Report(CoverageResult result)
{
using (var writer = new StringWriter())
{
JSON.Serialize(result.Modules, writer, Options.PrettyPrint);
return writer.ToString();
}
return JsonConvert.SerializeObject(result.Modules, Formatting.Indented);
}
}
}
2 changes: 1 addition & 1 deletion src/coverlet.core/coverlet.core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Jil" Version="2.15.4" />
<PackageReference Include="Mono.Cecil" Version="0.10.0" />
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="System.Reflection.Metadata" Version="1.5.0" />
<PackageReference Include="Microsoft.Extensions.FileSystemGlobbing" Version="2.0.1" />
</ItemGroup>
Expand Down

0 comments on commit a189fc2

Please sign in to comment.