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
                    
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="Afrowave.AJIS.Net" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Afrowave.AJIS.Net" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Afrowave.AJIS.Net" />
                    
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 Afrowave.AJIS.Net --version 1.1.0
                    
#r "nuget: Afrowave.AJIS.Net, 1.1.0"
                    
#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 Afrowave.AJIS.Net@1.1.0
                    
#: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=Afrowave.AJIS.Net&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Afrowave.AJIS.Net&version=1.1.0
                    
Install as a Cake Tool

Afrowave.AJIS.Net

NuGet

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 - AjisInputFormatter and AjisOutputFormatter for 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/json and application/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

Compatibility

  • .NET 10.0+
  • ASP.NET Core 8.0+
  • Nullable reference types enabled

License

MIT

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. 
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.1.0 152 2/17/2026
1.0.0 125 2/15/2026

## 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