JsonFileWrapper 1.2.3

Suggested Alternatives

MarcusMedina.IO.JsonFile

Additional Details

New name and newer code

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package JsonFileWrapper --version 1.2.3
                    
NuGet\Install-Package JsonFileWrapper -Version 1.2.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="JsonFileWrapper" Version="1.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JsonFileWrapper" Version="1.2.3" />
                    
Directory.Packages.props
<PackageReference Include="JsonFileWrapper" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JsonFileWrapper --version 1.2.3
                    
#r "nuget: JsonFileWrapper, 1.2.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.
#:package JsonFileWrapper@1.2.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JsonFileWrapper&version=1.2.3
                    
Install as a Cake Addin
#tool nuget:?package=JsonFileWrapper&version=1.2.3
                    
Install as a Cake Tool

<p align="center">

JsonFileWrapper

NuGet NuGet Downloads

C# .NET License: MIT Open Source

Build CodeQL Signed

</p>

JSON file wrapper with Save and load functions for .NET 10+

Back in 2009, I wanted my students to truly understand the power of OOP — not just the theory, but the feeling of writing a helper class that quietly does the heavy lifting so the rest of your code can breathe. I created JsonFileWrapper in that classroom: a simple wrapper that hides all the boilerplate of reading and writing JSON files behind a clean API. What started as a teaching example has since grown into a proper NuGet package, upgraded through the years from Newtonsoft.Json to the built-in System.Text.Json. No external dependencies. Just good OOP.

Installation

dotnet add package JsonFileWrapper

Breaking Changes (v1.1.0)

.NET 10.0 Minimum Required

This version upgrades the target framework from .NET 8.0 to .NET 10.0.

Old:

<TargetFramework>net8.0</TargetFramework>

New:

<TargetFramework>net10.0</TargetFramework>

Namespace (unchanged):

using MarcusMedinaPro.JsonFileWrapper;

See CHANGELOG.md for complete migration guide.

Status

This package is under active development.

Documentation

Development

cd csharp
dotnet build -c Release

Package integrity

All releases are signed with cosign (Sigstore keyless signing).

To verify a downloaded package, download both the .nupkg and its .sigstore.json bundle from the GitHub Release, then run:

cosign verify-blob <package.nupkg> \
  --bundle <package.nupkg.sigstore.json> \
  --certificate-identity-regexp "https://github.com/MarcusMedinaPro/.*/release.yml" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Expected output: Verified OK

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.

Version Downloads Last Updated