Repository History
2 repositories tagged with serialization

Superjson: Safely Serialize JavaScript Expressions Beyond JSON
Superjson is a powerful JavaScript library designed to overcome the limitations of standard JSON serialization. It enables developers to safely serialize and deserialize a superset of JSON, including complex types like Dates, BigInts, Maps, and Sets. This makes it an ideal solution for robust data handling in modern web applications, especially with frameworks like Next.js.

TOON: Compact, Human-Readable JSON for LLM Prompts
TOON, or Token-Oriented Object Notation, is a compact and human-readable data format designed to optimize JSON serialization for Large Language Model (LLM) prompts. It significantly reduces token count while maintaining explicit structure, making data more efficient and reliable for AI applications. This format combines indentation-based structure with tabular layouts for uniform arrays, offering a powerful alternative to traditional JSON and YAML.