▲ | adrianN 15 hours ago | |||||||
What’s the usecase for something like this? There are lots of excellent libraries for json available. Is this a teaching tool? | ||||||||
▲ | flohofwoe 15 hours ago | parent | next [-] | |||||||
Trivial to integrate into an existing code base, minimal size overhead, no heap allocations, no stdlib usage (only stdbool.h and stddef.h included for type definitions), no C++ template shenanigans and very simple and straightforward API. C libraries which tick all those boxes are actually quite rare, and C++ libraries are much rarer. | ||||||||
▲ | elcapitan 15 hours ago | parent | prev | next [-] | |||||||
Being able to parse without a lot of overhead and without allocations is quite interesting. E.g. when you process some massive json dump to just extract some properties (the Wikidata dumps come to mind). | ||||||||
| ||||||||
▲ | bb88 15 hours ago | parent | prev | next [-] | |||||||
Embedded cpus is an easy one. You could maybe run an api server on a vape now. | ||||||||
▲ | Snild 15 hours ago | parent | prev | next [-] | |||||||
Small code is easier to review, so projects with strict security requirements might be one? Also, license compliance is very easy (no notice required). | ||||||||
▲ | EasyMark 13 hours ago | parent | prev | next [-] | |||||||
A basic reference for beginners or people looking at doing some simple parsing? Someone who wants a tiny code footprint for a small hobby project on a limited processor? Although in that case I would almost certainly use TOML or similar instead. | ||||||||
▲ | ozgrakkurt 12 hours ago | parent | prev | next [-] | |||||||
There doesn’t need to be a use case for everything, it is just a cool project | ||||||||
▲ | Tempest1981 13 hours ago | parent | prev | next [-] | |||||||
Arduino, where you have KB, not GB or even MB. | ||||||||
▲ | CyberDildonics 15 hours ago | parent | prev | next [-] | |||||||
A small single file, pure C dependency that doesn't allocate memory can be a universal solution to a common problem if it works well. | ||||||||
▲ | p2detar 15 hours ago | parent | prev | next [-] | |||||||
> Zero-allocations with minimal state | ||||||||
▲ | adsan 15 hours ago | parent | prev | next [-] | |||||||
I suppose it's meant as a minimal library meant to be modded for the specific usecase. | ||||||||
▲ | binary132 14 hours ago | parent | prev [-] | |||||||
the more the merrier |