Table of Contents

Settings for .NET, in one line

Nucs.JsonSettings

The easiest way you'll ever write settings for your app. Cross-platform, modular, and still a one-liner — built on Json.NET, so nested objects, dictionaries and lists just serialize, with no mapping to write.

Install and run

Inherit one class, load with one call, change a property, save.

dotnet add package Nucs.JsonSettings
dotnet add package Nucs.JsonSettings.Autosave
using Nucs.JsonSettings;

class MySettings : JsonSettings { public override string FileName { get; set; } = "config.json"; public string Name { get; set; } = "default"; }

var settings = JsonSettings.Load<MySettings>("config.json"); settings.Name = "ok"; settings.Save();

5 targets netstandard2.0, net48, net6/8/10
AES-256 Password encryption module
Autosave Persist on property change
Modular Per-object load/save pipeline

Documentation Map

Pick what you're reaching for.

What JsonSettings Optimizes For

One-liner ergonomics, with full control when you need it.

No mapping, ever

It is built around Json.NET, so nested custom objects, dictionaries and lists serialize out of the box, with every Json.NET attribute and setting available to you.

Modular by design

Encryption, Base64, versioning, recovery and autosave are all modules on a per-object socket. Attach only what an object needs.

Cross-platform

The same package runs on .NET Framework, modern .NET, Unity and Xamarin through its netstandard2.0 asset.

Hardcoded or dynamic

Inherit JsonSettings for a typed POCO, or use SettingsBag for a dynamic key/value store — both save the same way.