Skip to main content

Welcome to ToonNet

ToonNet is a high-performance .NET library for serializing and deserializing data in TOON (Token-Optimized Object Notation) format.

What is TOON?​

TOON is a human-readable data format designed for:

  • AI/LLM prompts - Up to 40% fewer tokens than JSON
  • Configuration files - Clean, readable syntax
  • Data exchange - Human and machine friendly

Quick Example​

using ToonNet.Core;

// Serialize
var person = new Person { Name = "Alice", Age = 30 };
string toon = ToonSerializer.Serialize(person);

// Deserialize
var restored = ToonSerializer.Deserialize<Person>(toon);

Key Features​

  • πŸš€ High Performance - Expression trees, not reflection (10-100x faster)
  • πŸ’° Token Efficient - 40% fewer tokens than JSON (lower AI API costs)
  • πŸ’» Developer Friendly - System.Text.Json-compatible API
  • πŸ”§ ASP.NET Core - Input/output formatters, configuration provider
  • πŸ“¦ Format Extensions - JSON/YAML bidirectional conversion
  • 🎯 Source Generators - Compile-time code generation

Documentation Guide​

πŸš€ Getting Started​

Start here if you're new to ToonNet:

🎯 Core Features​

Deep dive into ToonNet's core functionality:

πŸ”Œ Format Extensions​

Convert between different data formats:

🌐 ASP.NET Core​

Integrate ToonNet with ASP.NET Core:

⚑ Advanced Topics​

Optimization and customization:

πŸ“š Reference​

Additional resources:

TopicLink
InstallationGetting Started
First ExampleQuick Start
API ReferenceAPI Guide
GitHub RepositoryToonNet on GitHub

Community & Support​

License​

ToonNet is open-source software licensed under the MIT License.