Corvus.Text.Json.JsonPath.SourceGenerator 5.1.5

dotnet add package Corvus.Text.Json.JsonPath.SourceGenerator --version 5.1.5
                    
NuGet\Install-Package Corvus.Text.Json.JsonPath.SourceGenerator -Version 5.1.5
                    
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.1.5">
  <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.1.5" />
                    
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.1.5
                    
#r "nuget: Corvus.Text.Json.JsonPath.SourceGenerator, 5.1.5"
                    
#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.1.5
                    
#: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.1.5
                    
Install as a Cake Addin
#tool nuget:?package=Corvus.Text.Json.JsonPath.SourceGenerator&version=5.1.5
                    
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.1.5 72 6/2/2026
5.1.4 78 6/2/2026
5.1.3 92 5/31/2026
5.1.2 91 5/31/2026
5.1.1 93 5/31/2026
5.1.0 100 5/28/2026
5.0.0 95 5/14/2026