A simple C# library for managing JSON-based key-value storage in .NET applications.
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.
- 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
- Clone or download this repository
- Add the
JsonStorage.csprojto your solution - Reference the project in your application
- 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
- Open a CLI terminal
- Navigate to your project directory
- Run
dotnet package add landon-codes.JsonStorage - Reference the project in your application
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.
- .NET 10.0 or later
- System.Text.Json (included in .NET Core/.NET 5+)
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
landon-codes and contributors