Corvus.Text.Json.JsonPath.SourceGenerator 5.6.1

dotnet add package Corvus.Text.Json.JsonPath.SourceGenerator --version 5.6.1
                    
NuGet\Install-Package Corvus.Text.Json.JsonPath.SourceGenerator -Version 5.6.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="Corvus.Text.Json.JsonPath.SourceGenerator" Version="5.6.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Corvus.Text.Json.JsonPath.SourceGenerator" Version="5.6.1" />
                    
Directory.Packages.props
<PackageReference Include="Corvus.Text.Json.JsonPath.SourceGenerator">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Corvus.Text.Json.JsonPath.SourceGenerator --version 5.6.1
                    
#r "nuget: Corvus.Text.Json.JsonPath.SourceGenerator, 5.6.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 Corvus.Text.Json.JsonPath.SourceGenerator@5.6.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=Corvus.Text.Json.JsonPath.SourceGenerator&version=5.6.1
                    
Install as a Cake Addin
#tool nuget:?package=Corvus.Text.Json.JsonPath.SourceGenerator&version=5.6.1
                    
Install as a Cake Tool

Corvus.Text.Json.JsonPath.SourceGenerator

Roslyn incremental source generator that produces optimized C# evaluation code from JSONPath (RFC 9535) expression files at build time.

Usage

  1. Add a .jsonpath file to your project with the expression:

    $.store.book[*].author
    
  2. Include it as an AdditionalFiles item:

    <AdditionalFiles Include="Expressions\*.jsonpath" />
    
  3. Annotate a partial type:

    [JsonPathExpression("Expressions/book-authors.jsonpath")]
    internal static partial class BookAuthors;
    
  4. Use the generated Query method:

    using var doc = ParsedJsonDocument<JsonElement>.Parse(json);
    using var workspace = JsonWorkspace.Create();
    JsonElement result = BookAuthors.Query(doc.RootElement, workspace);
    
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.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
5.6.1 81 9/13/2026
5.5.5 92 9/9/2026
5.5.4 85 9/1/2026
5.5.3 81 9/1/2026
5.5.2 93 8/30/2026
5.5.1 84 8/30/2026
5.5.0 112 8/27/2026
5.4.3 98 8/26/2026
5.4.2 84 8/26/2026
5.4.1 90 8/20/2026
5.4.0 87 8/19/2026
5.3.2 95 8/10/2026
5.3.1 105 8/5/2026
5.3.0 91 8/5/2026
5.2.13 112 8/2/2026
5.2.12 105 8/1/2026
5.2.10 106 7/26/2026
5.2.9 107 7/22/2026
5.2.7 108 7/12/2026
Loading failed