Tiny C99 JSON Parser: Zero-Allocation, ~150 Lines

2025-09-21
Tiny C99 JSON Parser: Zero-Allocation, ~150 Lines

A minimal JSON parsing library written in C99, boasting only around 150 lines of code! It features zero-allocation for memory efficiency and a streamlined state. Error messages include precise line and column numbers. Number and string parsing are left to the user, allowing customization with functions like `strtod` and `atoi`. A simple example demonstrates loading a rectangle from a JSON string into a `Rect` struct. This project is free and unencumbered software released into the public domain.

Development zero-allocation