landon-codes.JsonStorage
3.0.0
dotnet add package landon-codes.JsonStorage --version 3.0.0
NuGet\Install-Package landon-codes.JsonStorage -Version 3.0.0
<PackageReference Include="landon-codes.JsonStorage" Version="3.0.0" />
<PackageVersion Include="landon-codes.JsonStorage" Version="3.0.0" />
<PackageReference Include="landon-codes.JsonStorage" />
paket add landon-codes.JsonStorage --version 3.0.0
#r "nuget: landon-codes.JsonStorage, 3.0.0"
#:package landon-codes.JsonStorage@3.0.0
#addin nuget:?package=landon-codes.JsonStorage&version=3.0.0
#tool nuget:?package=landon-codes.JsonStorage&version=3.0.0
JsonStorage
A simple C# library for managing JSON-based key-value storage in .NET applications.
Description
JsonStorage provides an easy-to-use interface for storing and retrieving data in JSON files. It allows you to persist application data, configuration settings, or any key-value pairs to disk using JSON format.
Features
- Simple key-value storage API
- Automatic JSON file creation and management
- Load and save operations
- Bulk key-value operations
- File existence checking
- Clear storage functionality
Installation
Manual Installation
- Clone or download this repository
- Add the
JsonStorage.csprojto your solution - Reference the project in your application
Binary Installation
- Download the Nuget package file from the GitHub repository's release page
- Add a reference to the installed Nuget package
- Reference the project in your application
CLI Installation
- Open a CLI terminal
- Navigate to your project directory
- Run
dotnet package add landon-codes.JsonStorage - Reference the project in your application
Usage
JsonStorage provides several classes to manage Json files in your .NET projects.
StorageArray<T>StorageList<T>StorageDictionary<TKey, TValue>
There is also the interface IStorage which can be used for making your own classes.
All of the previously mentioned classes implement IStorage implement a function for reading and writing Json files. They also include constructor arguments to customize the functionality of the class.
Requirements
- .NET 10.0 or later
- System.Text.Json (included in .NET Core/.NET 5+)
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Authors
landon-codes and contributors
| 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
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.