Net.Leksi.ZkJson 2.0.3

dotnet add package Net.Leksi.ZkJson --version 2.0.3                
NuGet\Install-Package Net.Leksi.ZkJson -Version 2.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Net.Leksi.ZkJson" Version="2.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Net.Leksi.ZkJson --version 2.0.3                
#r "nuget: Net.Leksi.ZkJson, 2.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Net.Leksi.ZkJson as a Cake Addin
#addin nuget:?package=Net.Leksi.ZkJson&version=2.0.3

// Install Net.Leksi.ZkJson as a Cake Tool
#tool nuget:?package=Net.Leksi.ZkJson&version=2.0.3                

Attention! This article, as well as this announcement, are automatically translated from Russian.

The Net.Leksi.ZkJson library allows you to save JSON files in Apache ZooKeeper, as well as load them from ZooKeeper using the standard Microsoft library System .Text.Json.

This feature can be primarily useful when creating and running microservice applications in Docker, when the entire configuration is placed in ZooKeeper, and the connection string with ZooKeeper is passed to the service upon startup, with the corresponding chroot specified.

On the other hand, this library can be used to create a utility for uploading the required configurations into ZooKeeper.

Important! Any subtree of a loaded Json object is available as a Json object, but if you try to read a node that is not in the tree of a previously loaded Json object, an exception will be thrown!

All classes are contained in the Net.Leksi.ZkJson namespace.

  • ZkJsonSerializer - the main class, which is the factory of the corresponding Json converter. Also has properties used for settings.

  • ZkAction - an enumeration whose elements correspond to the options for updating data in ZooKeeper; in the current version only the option of complete replacement is implemented.

  • ZkStub - a stub class to indicate to the serialization/deserialization processor that the appropriate Json converter should be used.

  • ZkJsonException - an exception.

It is also suggested that you familiarize yourself with the demonstration projects:

  • Demo:ZkJsonDemo - a utility for reading, writing and deleting ZooKeeper data. For simplicity, it is implemented without authentication and authorization.

  • Demo:TestProject1 - shows an example usage for writing data generated programmatically using LINQ.

NuGet Package: Net.Leksi.ZkJson

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.3 156 2/12/2024
1.3.4 134 2/9/2024 1.3.4 is deprecated because it is no longer maintained.

2.0.3 Исправлены ошибки.
     2.0.3 Bugs fixed.
     2.0.0 Изменен параметр метода ZkJsonSerializer.IncrementalSerialize(). Расширена разметка внутренних ссылок файла JSON.
     2.0.0 The parameter of the ZkJsonSerializer.IncrementalSerialize() method has been changed. The markup of internal JSON file links has been expanded.
     1.3.3 Исправлена ошибка возникающая при наследовании.
     1.3.3 Fixed an error that occurred during inheritance.
     1.3.0 Добавлен метод IncrementalSerialize().
     1.3.0 Added method IncrementalSerialize().
     1.2.0 Добавлена функциональность.
     1.2.0 Added functionality.
     1.1.0 Добавлена функциональность.
     1.1.0 Added functionality.
     1.0.5 Изменено имя класса ZkJson на ZkJsonSerializer, чтобы избегать конфликта с пространством имён.
     1.0.5 Changed the ZkJson class name to ZkJsonSerializer to avoid namespace conflicts.