Varve.Json.Canonical 0.1.0-preview.20

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

Varve.Json.Canonical

RFC 8785, the JSON Canonicalization Scheme, over UTF-8, with no dependency (ADR 0147). It is the one implementation of the canonical form in Varve: Varve.JsonLd writes rdf:JSON literals with it, and Varve.Events writes CloudEvents, schemas and AsyncAPI documents with it. What it writes for an input never changes, because those bytes are read for ever.

  • CanonicalJson: the three rules as functions.
    • WriteString escapes only ", \ and the control characters (§3.2.2.2).
    • FormatNumber and WriteNumber render a double as ECMAScript's Number::toString does (§3.2.2.3).
    • CompareNames orders member names by their UTF-16 code units (§3.2.3).
  • CanonicalJsonWriter: a forward-only writer into an IBufferWriter<byte>. An object's members must arrive in canonical order; a member out of order, a non-finite number, or a value where a name is due throws, so a caller cannot write a non-canonical document by accident.
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 (3)

Showing the top 3 NuGet packages that depend on Varve.Json.Canonical:

Package Downloads
Varve.JsonLd

JSON-LD 1.1: expansion, toRdf and fromRdf over System.Text.Json's Utf8JsonReader and Utf8JsonWriter, with RDF 1.2's base directions and rdf:JSON literals in canonical form.

Varve.Events

Domain events as quads: the event catalogue's declarations, their rendering as CloudEvents 1.0 in RFC 8785 canonical JSON through declared SELECT mappings, JSON Schemas with immutable revisions, AsyncAPI 3.0, and the compatibility check of a declaration change.

Varve.Shacl.Store

Commit-time SHACL gating for Varve.Store: shapes bindings that refuse a commit introducing a violation, or attach a digest of its affected report, validating only the focus nodes a commit's delta affects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-preview.20 64 11/10/2026
0.1.0-preview.19 84 11/6/2026
0.1.0-preview.18 76 11/6/2026
0.1.0-preview.17 75 11/6/2026
0.1.0-preview.16 79 11/3/2026
0.1.0-preview.15 315 10/26/2026
0.1.0-preview.14 76 10/26/2026
0.1.0-preview.13 78 10/26/2026
0.1.0-preview.12 104 10/23/2026
0.1.0-preview.11 76 10/21/2026
0.1.0-preview.10 81 10/20/2026
0.1.0-preview.9 76 10/19/2026
0.1.0-preview.8 83 10/17/2026
0.1.0-preview.7 93 10/17/2026