Re:Show HN: I built a web framework in C
by le-mark on Friday October 10, 2025 @06:53AM
(#45537374)
In that case the json parse function might be a bit of a challenge. It should actually be pretty straight forward with the builder functionality you’ve got in there. Loop over the input and use a state machine (switch block with a state variable) keep track of what you’re doing. Oh and you’ll need to recurse or otherwise use a stack to keep the nesting levels correct. Ie objects that contain arrays or objects, arrays that contain arrays, etc.
[ Parent
| on HN ]
There are no comments on this comment yet.