sj.h is a tiny JSON parsing library written in C99 for developers who want a minimal, allocation-free way to walk through JSON data. It is intentionally small, around a few hundred lines or less depending on how it is counted, and keeps state minimal so it can fit into constrained environments. The library does not try to own every part of JSON handling; instead, it leaves number conversion and string interpretation to the user. This design gives developers direct control over memory, numeric precision, Unicode handling, and application-specific parsing behavior. It reports errors with line and column locations, which makes malformed input easier to debug despite the library’s small size. It is especially appealing for embedded tools, game engines, small utilities, and C projects that value transparency over abstraction.

Features

  • Tiny C99 JSON parser
  • Zero-allocation parsing model
  • Minimal parser state
  • Line and column error reporting
  • User-controlled number handling
  • User-controlled string handling

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow sj.h

sj.h Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of sj.h!

Additional Project Details

Programming Language

C

Related Categories

C Libraries

Registered

2026-05-11