Skip to content

Commit

Permalink
Add note about new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sungam3r committed Jan 3, 2025
1 parent 64e081d commit 74ace25
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
[![CodeQL analysis](https://github.com/destructurama/json-net/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/destructurama/json-net/actions/workflows/codeql-analysis.yml)

Adds support for logging JSON.NET dynamic types as structured data with [Serilog](https://serilog.net).
For System.Text.Json dynamic types see [this repo](https://github.com/destructurama/system-text-json).

# Installation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
<PackageReference Include="Serilog" Version="4.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="PublicApiGenerator" Version="11.3.0" />
<PackageReference Include="coverlet.msbuild" Version="6.0.3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private sealed class StubFactory : ILogEventPropertyValueFactory
public LogEventPropertyValue CreatePropertyValue(object? value, bool destructureObjects = false)
{
if (value is JArray arr && arr.Values<int>().SequenceEqual([1, 2, 3]))
return new SequenceValue(new[] { new ScalarValue(1), new ScalarValue(2), new ScalarValue(3) });
return new SequenceValue([new ScalarValue(1), new ScalarValue(2), new ScalarValue(3)]);

if (value is JToken t && t.Value<int>() == 42)
return new ScalarValue(42);
Expand Down

0 comments on commit 74ace25

Please sign in to comment.