KamiSama.Extensions.Json
10.0.13
See the version list below for details.
dotnet add package KamiSama.Extensions.Json --version 10.0.13
NuGet\Install-Package KamiSama.Extensions.Json -Version 10.0.13
<PackageReference Include="KamiSama.Extensions.Json" Version="10.0.13" />
<PackageVersion Include="KamiSama.Extensions.Json" Version="10.0.13" />
<PackageReference Include="KamiSama.Extensions.Json" />
paket add KamiSama.Extensions.Json --version 10.0.13
#r "nuget: KamiSama.Extensions.Json, 10.0.13"
#:package KamiSama.Extensions.Json@10.0.13
#addin nuget:?package=KamiSama.Extensions.Json&version=10.0.13
#tool nuget:?package=KamiSama.Extensions.Json&version=10.0.13
KamiSama.Extensions.Json
Version: 10.0.0
Description
System.Text.Json convenience extensions for serialization, deserialization, dynamic JSON object graphs, and converter registration. Includes converters for BigInteger, hexadecimal byte arrays, TimeSpan, and discriminator-based polymorphic types.
How to use
dotnet add package KamiSama.Extensions.Json --version 10.0.0
Use KamiSama.Extensions for serialization helpers and KamiSama.Extensions.Json for converter types. Register converters on the JsonSerializerOptions instance used by your application:
using KamiSama.Extensions;
using KamiSama.Extensions.Json;
var options = new JsonSerializerOptions()
.AddHexByteConverter()
.AddTimeSpanJsonConverter();
options.Converters.Add(new BigIntegerJsonConverter());
options.Converters.Add(new DynamicObjectConverter());
For polymorphic deserialization, mark one base-type property with JsonHirerarchyDiscriminatorAttribute, register each derived type with HierarchicalJsonConverter<T>.Register, and then call AddHierarchicalConverter<T>() on the same options instance.
Namespaces
- KamiSama.Extensions (1 types)
- KamiSama.Extensions.Json (6 types)
Types
- KamiSama.Extensions.JsonSerializationExtensions - Provides extensions for JSON serialization, deserialization, dynamic conversion, and converter registration. The registration helpers mutate and return the supplied
JsonSerializerOptionsinstance. - KamiSama.Extensions.Json.BigIntegerJsonConverter - Converts
BigIntegervalues to and from JSON, writing values as decimal strings. String tokens preserve arbitrary precision; numeric tokens are limited to thedecimalrange. - KamiSama.Extensions.Json.DynamicObjectConverter - Converts JSON values to dynamic CLR object graphs and serializes runtime object values back to JSON. Objects become
ExpandoObjectinstances, while arrays and scalar values use their corresponding CLR shapes. - KamiSama.Extensions.Json.HexByteArrayJsonConverter - Converts byte arrays to and from hexadecimal JSON strings. Use it when binary values should be represented as hexadecimal text instead of Base64.
- KamiSama.Extensions.Json.HierarchicalJsonConverter<T> - Deserializes instances of a base type as registered derived types selected by a discriminator property. Mark the base type's discriminator property and register every supported discriminator value before deserialization.
- KamiSama.Extensions.Json.JsonHirerarchyDiscriminatorAttribute - Marks the property used by
HierarchicalJsonConverter{T}as the polymorphic type discriminator. Apply it to exactly one public property on the base type. - KamiSama.Extensions.Json.TimeSpanJsonConverter - Converts
TimeSpanvalues to and from their standard JSON string representation. Use it when an application needs this package's explicit string-format compatibility behavior.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- KamiSama.Extensions.Core (>= 10.0.13)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on KamiSama.Extensions.Json:
| Package | Downloads |
|---|---|
|
KamiSama.Repositories.Json
Lazy-loading JSON file repository with synchronous and asynchronous query and mutation APIs. |
|
|
Polareum.Commons.RestSharp
Package Description |
|
|
KamiSama.Extensions.RestSharp
Fluent RestSharp request construction and dependency injection registration for HTTP integrations. Build GET, POST, PUT, and DELETE requests with parameters, headers, URL segments, files, or JSON bodies, then deserialize successful responses. |
|
|
Radin.MicroService.Chassis1
Package Description |
|
|
Radin.MicroService.Chassis
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0.2 | 72 | 11/23/2026 |
| 11.0.0.1 | 88 | 11/21/2026 |
| 10.0.14 | 147 | 11/8/2026 |
| 10.0.13.1 | 166 | 10/22/2026 |
| 10.0.13 | 146 | 10/22/2026 |
| 10.0.11.9 | 214 | 8/24/2026 |
| 10.0.11.8 | 200 | 8/21/2026 |
| 10.0.11.7 | 198 | 8/21/2026 |
| 10.0.11.6 | 206 | 8/19/2026 |
| 10.0.11.5 | 186 | 8/18/2026 |
| 10.0.11.4 | 184 | 8/18/2026 |
| 10.0.11.3 | 184 | 8/18/2026 |
| 10.0.11.2 | 177 | 8/18/2026 |
| 10.0.11.1 | 206 | 8/15/2026 |
| 10.0.11 | 180 | 8/11/2026 |
| 10.0.10.2 | 185 | 8/4/2026 |
| 10.0.10.1 | 157 | 7/31/2026 |
| 10.0.10 | 245 | 7/30/2026 |
| 10.0.9 | 201 | 6/20/2026 |
| 10.0.7 | 539 | 5/1/2026 |