< Summary

Information
Class: ArturRios.Util.Http.JsonDefaults
Assembly: ArturRios.Util
File(s): /home/ci/agent/workspace/dotnet-util-docs_main/app/src/Http/JsonDefaults.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 23
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%

File(s)

/home/ci/agent/workspace/dotnet-util-docs_main/app/src/Http/JsonDefaults.cs

#LineLine coverage
 1using System.Text.Json;
 2
 3namespace ArturRios.Util.Http;
 4
 5/// <summary>
 6/// The <see cref="JsonSerializerOptions"/> shared by everything in this library that reads or writes JSON.
 7/// </summary>
 8/// <remarks>
 9/// Property matching is case insensitive so that a server answering in camelCase binds to PascalCase
 10/// members without per-call configuration, which is also how Newtonsoft.Json behaved before this library
 11/// moved to <see cref="System.Text.Json"/>. Serialization keeps member names exactly as declared.
 12/// </remarks>
 13internal static class JsonDefaults
 14{
 15    /// <summary>
 16    /// Options used by <see cref="HttpExtensions"/>, <see cref="HttpOutput{TBody}"/>,
 17    /// <see cref="IO.FileReader"/> and <see cref="IO.FileReaderAsync"/>.
 18    /// </summary>
 119    internal static readonly JsonSerializerOptions Options = new()
 120    {
 121        PropertyNameCaseInsensitive = true
 122    };
 23}

Methods/Properties

.cctor()