Afrowave.AJIS.Net
1.1.0
dotnet add package Afrowave.AJIS.Net --version 1.1.0
NuGet\Install-Package Afrowave.AJIS.Net -Version 1.1.0
<PackageReference Include="Afrowave.AJIS.Net" Version="1.1.0" />
<PackageVersion Include="Afrowave.AJIS.Net" Version="1.1.0" />
<PackageReference Include="Afrowave.AJIS.Net" />
paket add Afrowave.AJIS.Net --version 1.1.0
#r "nuget: Afrowave.AJIS.Net, 1.1.0"
#:package Afrowave.AJIS.Net@1.1.0
#addin nuget:?package=Afrowave.AJIS.Net&version=1.1.0
#tool nuget:?package=Afrowave.AJIS.Net&version=1.1.0
Afrowave.AJIS.Net
ASP.NET Core integration for the AJIS (.NET) framework. Provides input/output formatters for seamless JSON replacement with enhanced performance and features.
Overview
The Net library enables using AJIS as a drop-in replacement for JSON in ASP.NET Core applications:
- HTTP formatters -
AjisInputFormatterandAjisOutputFormatterfor MVC - Seamless JSON replacement - Same API as System.Text.Json but with AJIS features
- Async streaming - Efficient serialization over HTTP streams
- Type mapping - Full support for AJIS type mapping features
- Diagnostics - Enhanced error reporting for API responses
Features
- Input formatter - Deserialize JSON/AJIS requests automatically
- Output formatter - Serialize responses to JSON/AJIS format
- ASP.NET Core integration - Easy configuration with
AddAjisFormatters() - HTTP content negotiation - Supports
application/jsonandapplication/ajis+json - Async support - All formatters support async operations
- Diagnostics - Detailed error messages with AJIS diagnostics
- Compatibility - Works with existing JSON-based APIs
Installation
dotnet add package Afrowave.AJIS.Net
Dependencies
- Afrowave.AJIS.Core - Core contracts and settings
- Afrowave.AJIS.Serialization - Serializer and value types
- Afrowave.AJIS.IO - File I/O utilities (optional)
- Microsoft.AspNetCore.Mvc.Core - ASP.NET Core MVC infrastructure
- Microsoft.Extensions.DependencyInjection - Dependency injection
- Microsoft.Extensions.Options - Configuration options
API
See the API Reference for complete documentation.
Key Types
| Type | Description |
|---|---|
AjisInputFormatter |
ASP.NET Core input formatter |
AjisOutputFormatter |
ASP.NET Core output formatter |
AjisAspNetCoreExtensions |
Extension methods for service registration |
Usage
Basic configuration
// Program.cs
builder.Services.AddControllers()
.AddAjisFormatters();
Controller usage
[ApiController]
[Route("api/[controller]")]
public class UsersController : ControllerBase
{
[HttpGet]
public IActionResult Get()
{
var users = new[] { new { Name = "John", Age = 30 } };
return Ok(users); // Automatically serialized to AJIS
}
[HttpPost]
public IActionResult Create([FromBody] User user)
{
// Automatically deserialized from AJIS
return Ok(user);
}
}
Content negotiation
// Client can request AJIS format
var client = new HttpClient();
client.DefaultRequestHeaders.Accept.ParseAdd("application/ajis+json");
var response = await client.GetAsync("api/users");
var users = await response.Content.ReadFromJsonAsync<User[]>();
Documentation
- API Reference - Complete API documentation
- HTTP Integration - HTTP details
- Getting Started - Quick start guide
- API Integration - Integration docs
Compatibility
- .NET 10.0+
- ASP.NET Core 8.0+
- Nullable reference types enabled
License
MIT
| Product | Versions 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. |
-
net10.0
- Afrowave.AJIS.Core (>= 1.1.0)
- Afrowave.AJIS.IO (>= 1.1.0)
- Afrowave.AJIS.Serialization (>= 1.1.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.3.9)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
## v1.1.0 (2026-02-16)
### New Features
- ASP.NET Core formatters now work with new Ajis static API
- Integration with new Ajis static API from Afrowave.AJIS.Core v1.1.0
### Dependencies
- Afrowave.AJIS.Core v1.1.0
### Notes
- No breaking changes in this release