Czlovek.Json
1.0.10
See the version list below for details.
dotnet add package Czlovek.Json --version 1.0.10
NuGet\Install-Package Czlovek.Json -Version 1.0.10
<PackageReference Include="Czlovek.Json" Version="1.0.10" />
<PackageVersion Include="Czlovek.Json" Version="1.0.10" />
<PackageReference Include="Czlovek.Json" />
paket add Czlovek.Json --version 1.0.10
#r "nuget: Czlovek.Json, 1.0.10"
#:package Czlovek.Json@1.0.10
#addin nuget:?package=Czlovek.Json&version=1.0.10
#tool nuget:?package=Czlovek.Json&version=1.0.10
JSON Serializer and Deserializer
This is a C# class with two extension methods that allows serializing and deserializing JSON using the System.Text.Json library. The methods are Serialize and Deserialize.
Usage
Serialize
using System.Text.Json;
using YourNamespace.Extensions;
var myObject = new { Name = "John", Age = 30 };
var options = new JsonSerializerOptions { WriteIndented = true };
string json = myObject.Serialize(options);
This will serialize the myObject object into a JSON string with indentation and store it in the json variable.
If you do not provide the options parameter, the method will use the default options defined in the SerializerOptions static field of the Extensions class.
Deserialize
using System.Text.Json;
using YourNamespace.Extensions;
var json = "{\"Name\":\"John\",\"Age\":30}";
var options = new JsonSerializerOptions { PropertyNameCaseInsensitive = true };
var myObject = json.Deserialize<MyClass>(options);
This will deserialize the JSON string stored in the json variable into a MyClass object using the specified options. If you do not provide the options parameter, the method will use the default options defined in the SerializerOptions static field of the Extensions class.
Note that the type parameter T of the Deserialize method must be specified explicitly.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net7.0
- Czlovek.DateTime (>= 1.0.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Czlovek.Json:
| Package | Downloads |
|---|---|
|
Czlovek.RabbitMq
Provides extension methods for working with Base64 encoding. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0-beta.84 | 52 | 5/7/2026 |
| 2.1.0-beta.83 | 52 | 5/7/2026 |
| 2.1.0-beta.82 | 107 | 3/20/2026 |
| 2.1.0-beta.81 | 71 | 2/21/2026 |
| 2.1.0-beta.80 | 67 | 2/21/2026 |
| 2.1.0-beta.79 | 82 | 2/13/2026 |
| 2.1.0-beta.78 | 79 | 2/11/2026 |
| 2.1.0-beta.77 | 73 | 2/11/2026 |
| 2.1.0-beta.76 | 69 | 2/10/2026 |
| 2.1.0-beta.75 | 75 | 2/10/2026 |
| 2.1.0-beta.74 | 76 | 1/28/2026 |
| 2.1.0-beta.73 | 201 | 11/6/2025 |
| 2.1.0-beta.72 | 181 | 11/6/2025 |
| 2.1.0-beta.71 | 194 | 11/4/2025 |
| 2.1.0-beta.70 | 174 | 11/4/2025 |
| 2.1.0-beta.69 | 186 | 11/4/2025 |
| 2.1.0-beta.68 | 188 | 11/4/2025 |
| 2.1.0-beta.67 | 191 | 11/2/2025 |
| 2.1.0-beta.66 | 185 | 11/2/2025 |
| 1.0.10 | 594 | 4/11/2023 |