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" />
<PackageReference Include="Corvus.Text.Json.JsonPath.SourceGenerator"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Corvus.Text.Json.JsonPath.SourceGenerator&version=5.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
Add a
.jsonpathfile to your project with the expression:$.store.book[*].authorInclude it as an
AdditionalFilesitem:<AdditionalFiles Include="Expressions\*.jsonpath" />Annotate a partial type:
[JsonPathExpression("Expressions/book-authors.jsonpath")] internal static partial class BookAuthors;Use the generated
Querymethod: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.