Celly.Json.AspNetCore 1.7.2

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

Celly.Json.AspNetCore

ASP.NET Core integration for Celly.Json: lazy HttpContext CEL activations, authorization policies, Minimal API endpoint filters, compiled expression caching, and zero-copy Utf8JsonWriter IResult responses.

Install

dotnet add package Celly.Json.AspNetCore

Quick Start

using Celly.Json.AspNetCore;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddCellyJson();
builder.Services.AddAuthorizationBuilder()
    .AddCelPolicy("AdminRegion", "user.authenticated && 'admin' in user.roles && route.region == 'us'");

var app = builder.Build();

// Authorization policy backed by CEL
app.MapGet("/regions/{region}/orders", () => Results.Ok())
    .RequireAuthorization("AdminRegion");

// Inline Minimal API endpoint filter
app.MapGet("/admin/metrics", () => Results.Ok())
    .RequireCel("user.authenticated && 'admin' in user.roles");

// Zero-copy CelValue JSON response
app.MapGet("/eval", (ICelProgramCache cache) =>
{
    var program = cache.GetOrCompile("{'ok': true, 'count': 42}");
    var value = program.Eval(new Dictionary<string, object?>());
    return Results.Extensions.CelJson(value);
});

app.Run();

Documentation

License

Licensed under the MIT License.

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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.7.2 42 12/2/2026
1.7.1 43 12/2/2026
1.7.0 53 12/1/2026
1.6.0 53 12/1/2026
1.5.1 64 11/30/2026
1.5.0 64 11/30/2026
1.4.0 53 11/30/2026
1.3.0 65 11/30/2026
1.2.0 73 11/29/2026
1.1.1 61 11/29/2026
1.1.0 64 11/29/2026
1.0.1 57 11/29/2026
1.0.0 61 11/29/2026
0.2.0 64 11/29/2026