<PackageReference Include="Serilog" Version="4.3.2-dev-02418" />

Serilog.Formatting.Json.JsonValueFormatter

Converts Serilog's structured property value format into JSON.
public JsonValueFormatter(string typeTagName = "_typeTag")

Construct a JsonFormatter.

public static void WriteQuotedJsonString(string str, TextWriter output)

Write a valid JSON string literal, escaping as necessary.

public void Format(LogEventPropertyValue value, TextWriter output)

Format value as JSON to output.

protected virtual void FormatLiteralValue(object value, TextWriter output)

Write a literal as a single JSON value, e.g. as a number or string. Override to support more value types. Don't write arrays/structures through this method - the active destructuring policies have already indicated the value should be scalar at this point.