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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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