MarcusMedina.JsonFileWrapper 2.0.1

Suggested Alternatives

MarcusMedina.IO.JsonFile

Additional Details

It's now moved to a new namespace for better compatibility with other nugets

dotnet add package MarcusMedina.JsonFileWrapper --version 2.0.1
                    
NuGet\Install-Package MarcusMedina.JsonFileWrapper -Version 2.0.1
                    
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="MarcusMedina.JsonFileWrapper" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MarcusMedina.JsonFileWrapper" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MarcusMedina.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 MarcusMedina.JsonFileWrapper --version 2.0.1
                    
#r "nuget: MarcusMedina.JsonFileWrapper, 2.0.1"
                    
#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 MarcusMedina.JsonFileWrapper@2.0.1
                    
#: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=MarcusMedina.JsonFileWrapper&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=MarcusMedina.JsonFileWrapper&version=2.0.1
                    
Install as a Cake Tool

MarcusMedina.JsonFileWrapper

NuGet NuGet Downloads C# .NET License: MIT Open Source Build Signed

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

Made for Curious Minds

This library was built with students in mind — not as a black box to copy and paste, but as a real-world example of how clean, purposeful code is written and shared.

Whether you're discovering C# for the first time, need a reliable helper for your school project, or are simply trying to fall in love with writing code — you're exactly who this was made for.

The source is open. Read it, fork it, break it, improve it. That's the whole point.

And if this library saved you an afternoon, or made something click that didn't before — that's everything.

Non-students are equally welcome. Good code doesn't care about your diploma.

⭐ If this helped you, consider starring the project on GitHub — it helps other students find it too.

💬 Have an idea, a feature request, or just want to say hi? Open an issue on GitHub — I'd love to hear from you.

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
2.0.1 181 6/29/2026 2.0.1 is deprecated because it is no longer maintained.
2.0.0 124 6/29/2026