JsonPit 3.8.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package JsonPit --version 3.8.6
                    
NuGet\Install-Package JsonPit -Version 3.8.6
                    
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="JsonPit" Version="3.8.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JsonPit" Version="3.8.6" />
                    
Directory.Packages.props
<PackageReference Include="JsonPit" />
                    
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 JsonPit --version 3.8.6
                    
#r "nuget: JsonPit, 3.8.6"
                    
#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 JsonPit@3.8.6
                    
#: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=JsonPit&version=3.8.6
                    
Install as a Cake Addin
#tool nuget:?package=JsonPit&version=3.8.6
                    
Install as a Cake Tool

JsonPit

Stores JsonPits, json files with a value history, across machines/servers ("eventually persistent").

Start Here

If you want to use JsonPit 3.8.6 from NuGet in another service or agent workflow, start with GettingStarted.md.

That guide now covers:

  • package setup for JsonPit, RaiUtils, and OsLibCore
  • current Pit and PitItem usage patterns
  • the recommended long-lived in-memory server usage pattern
  • querying and enumeration patterns that are actually supported
  • persistence and synchronized-storage expectations
  • a practical PersonPit example for OTW / AfricaStage style backend work

3.8.6

  • Coordinated release: aligns JsonPit with OsLibCore 3.8.6 and RaiUtils 3.8.6 in the current publish order.
  • Keeps the WWWA-based quick-start section in GettingStarted.md for cloud-path pit creation and sample JSON5 seeding.
  • The supported cloud-backed provider claim is now OneDrive, GoogleDrive, and Dropbox.
  • PitItem.Id is now the canonical framework identifier.
  • Legacy payloads that still contain Name without Id are normalized internally by copying Name into Id, while preserving Name.
  • Future use of Name as an application-defined custom field remains supported.
  • Remote-sync workflows continue to align with OsLib's configurable metadata propagation delay handling, including the mkdir polymorphism package line update in OsLib.
  • Live docs and release-note pointers were refreshed for the 3.8.6 release line, and this README is packaged with the NuGet release.

namespace

JsonPit

classes

<details> <summary>ItemsBase: Base container holding a key identifier for item groups.</summary>

  • ItemsBase: Key </details>

<details> <summary>JsonPitBase: Common base for pits with config, flags, and persistence helpers.</summary>

  • JsonPitBase: ReadOnly, Backup, RunningOnMaster, MasterUpdatesAvailable, ChangeDir, JsonFile </details>

<details> <summary>TimestampedValue: Value with an attached timestamp and round-trip string format.</summary>

  • TimestampedValue: Value, Time, ToString </details>

<details> <summary>MasterFlagFile: Flag file used to track master ownership and last update time.</summary>

  • MasterFlagFile: Originator, Time, Update </details>

<details> <summary>ProcessFlagFile: Flag file used to track the current process and last update time.</summary>

  • ProcessFlagFile: Process, Update, CurrentProcessId </details>

<details> <summary>PitItem: JSON-backed item with metadata and change tracking.</summary>

  • PitItem: Id, Modified, Deleted, Note, SetProperty, DeleteProperty </details>

<details> <summary>PitItemExtensions: Helpers for comparing items and aligning timestamps.</summary>

  • PitItemExtensions: Equals, isLike, aligned </details>

<details> <summary>PitItems: History stack of PitItem versions for a single key.</summary>

  • PitItems: Push, Peek, Get, Merge, Count </details>

<details> <summary>Pit: JsonPit file container with item history and persistence.</summary>

  • Pit: Add, Get, GetAt, Delete, Save, MergeChanges, Keys </details>

cloud root convention

JsonPit resolves cloud-backed storage locations through OsLib, but the current approach is to read an explicit configured root from Os.Config.Cloud rather than relying on a preferred-root helper.

For Ubuntu development machines, especially when Google Drive is mounted through rclone, GNOME integration, or a team-specific mount path, prefer explicit configuration instead of probe-only discovery.

Recommended shared contract:

  • Use RAIkeep.json5 to point the supported provider roots Cloud.Dropbox, Cloud.OneDrive, and Cloud.GoogleDrive at the active synchronized mounts.
  • Keep that file at ~/.config/RAIkeep.json5.
  • Reuse the same PascalCase keys as OsLib.

That keeps JsonPit aligned with OsLib in .NET today and with the upcoming Python OsLib, RaiUtils, and JsonPit packages later.

<details> <summary>Item: Base item with modified tracking and dirty state management.</summary>

  • Item: Id, Modified, Deleted, Delete, Valid, Validate, Invalidate </details>

@see GettingStarted.md for the practical onboarding guide, or check the unit tests for lower-level API examples.

release notes

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on JsonPit:

Package Downloads
HDitem.Persist

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.8.7 87 5/16/2026
3.8.6 87 5/16/2026
3.8.3 91 5/16/2026
3.8.1 125 5/11/2026
3.8.0 101 5/10/2026
3.7.9 103 5/10/2026
3.7.8 90 5/5/2026
3.7.7 90 5/1/2026
3.7.6 105 4/16/2026
3.7.5 104 4/14/2026
3.7.2 114 3/29/2026
3.7.1 103 3/29/2026
3.6.1 114 3/27/2026
3.5.2 107 3/22/2026
3.4.0 103 3/18/2026
2.3.1 116 2/19/2026
2.2.0 694 7/23/2022
2.1.2 779 10/24/2019
2.1.1 711 10/23/2019
2.1.0 708 10/22/2019
Loading failed

3.8.1 release: aligns JsonPit with the mkdir-polymorphism package line (OsLibCore 3.8.1 and RaiUtils 3.8.1) while keeping JsonPit API and persistence behavior stable.