Hasty Briefsbeta

Sj.h: A tiny little JSON parsing library in ~150 lines of C99

6 hours ago
  • #C99
  • #parsing
  • #JSON
  • A tiny JSON parsing library written in ~150 lines of C99.
  • Zero-allocations with minimal state.
  • Error messages include line:column location.
  • No built-in number parsing (e.g., strtod, atoi); handle numbers as you prefer.
  • No string parsing; bring your own Unicode surrogate pair handling.
  • Example program provided to load a rectangle from a JSON string into a Rect struct.
  • Free and unencumbered public domain software.