HyperDev.Text.Json 1.2.3

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

HyperDev.Text.Json

JSON utilities for .NET built on Newtonsoft.Json and Newtonsoft.Json.Schema, part of the HyperDev Fatum framework.

  • JSON Schema helpers: parsing, validation with readable errors, defaults and constants, dereferencing, comparison
  • Schema inference from sample data
  • JSON transformation and expression evaluation
  • Serialization extensions: custom contract resolvers, inheritance-aware converters

Installation

dotnet add package HyperDev.Text.Json

Quick start

using HyperDev.Text.Json.Schema;
using Newtonsoft.Json.Linq;

if (JSchemaHelper.TryParse(@"{ ""type"": ""object"", ""required"": [""name""] }", out var schema))
{
    var data = JToken.Parse(@"{ ""age"": 42 }");

    if (!schema.IsValid(data, out var errors))
    {
        foreach (var error in errors)
            Console.WriteLine($"{error.Path}: {error.Message}");
    }
}

Newtonsoft.Json.Schema license

This package depends on Newtonsoft.Json.Schema, which is commercial software (or AGPL-3.0). Without a license key it works within the free quota: 1,000 validations and 10 schema generations per hour, then it throws JSchemaException.

The key is never stored in this package. Provide your own in one of these ways:

  1. Environment variable (read automatically when the library loads), checked in this order:

    • NEWTONSOFT_JSON_SCHEMA_LICENSE
    • JSONSCHEMA_LICENSE
    • <EntryAssemblyName>_JSONSCHEMA
  2. From code, for example when the key comes from configuration or a key vault:

    HyperDev.Text.Json.JsonSchemaLicense.Register(configuration["JsonSchema:License"]);
    

JsonSchemaLicense.IsRegistered tells whether a key has been registered in the current process.

Libraries that need validating readers or schema generators should create them with JSchemaHelper.CreateValidatingReader(...) and JSchemaHelper.CreateGenerator(), so the license is registered first.

Target frameworks

.NET 8.0, .NET 10.0

License

MIT, © Ivan Senatore, Wemake Informatica srl. Third-party dependencies keep their own licenses (Newtonsoft.Json: MIT, Antlr4.Runtime: BSD-3-Clause, Newtonsoft.Json.Schema: commercial or AGPL-3.0).

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (4)

Showing the top 4 NuGet packages that depend on HyperDev.Text.Json:

Package Downloads
HyperDev.Web

HyperDev Fatum Framework

HyperDev.Web.Remoting

HyperDev Fatum Framework

HyperDev.Utilities

HyperDev Fatum Framework

HyperDev.Text.Json.Transform

HyperDev Fatum Framework: JsonTransform and the Newtonsoft.Json.Schema helpers (inference, samples, validation)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.4 123 11/11/2026
1.2.3 161 11/7/2026
1.2.2 184 10/1/2026
1.2.1 147 9/18/2026
1.2.0 270 7/29/2026
1.1.14 217 7/7/2026
1.1.13 335 5/20/2026
1.1.12 156 5/15/2026
1.1.11 363 3/2/2026
1.1.10 320 2/10/2026
1.1.9 215 2/3/2026
1.1.8 564 11/18/2025
1.1.7 303 11/5/2025
1.1.6 279 10/6/2025
1.1.5 315 9/30/2025
1.1.4 274 9/30/2025
1.1.3 240 9/30/2025
1.1.2 261 9/29/2025
1.1.1 362 9/19/2025
1.1.0.8 260 9/6/2025
Loading failed