Hacker GitHub

← All repos

rxi/sj.h

View on GitHub ↗ ★ 1,554 C

A tiny little JSON parsing library

6 mentions on Hacker News by 6 people: 1 story, 5 comments · first 2025-09-21 · latest 2025-09-22

Mentions per year 6 mentions · busiest year 2025 (6)
20082026
  1. r->depth would have been initialized to zero here https://github.com/rxi/sj.h/blob/5cb5df45c8c37fd8c2322026a11...
  2. …specify that this structure would be 0 initialized by default, or is this line missing a = { 0 }? - https://github.com/rxi/sj.h/blob/5cb5df45c8c37fd8c2322026a11... - it reads to me like r->depth might be randomly initialized and equal to…
  3. That's detected as an error though? https://github.com/rxi/sj.h/blob/eb725e0858877e86932128836c1...
  4. The library doesn’t check for signed integer overflow here: https://github.com/rxi/sj.h/blob/eb725e0858877e86932128836c1... https://github.com/rxi/sj.h/blob/eb725e0858877e86932128836c1... https://github.com/rxi/sj.h/blob/eb725e0858877e86932…
  5. It seems so: https://github.com/rxi/sj.h/blob/master/demo%2Fobject.c
  6. ▲ 473
    Sj.h: A tiny little JSON parsing library in ~150 lines of C99
    story by simonpure · 2025-09-21 · 240 comments