JSON parser libraries in general is a black hole of suffering imo. They're either written with a different use case in mind, or a complex mess of abstractions; often both. It's not a very difficult problem to solve if you only write exactly what you need for your specific use case.
Sj.h: A tiny little JSON parsing library in ~150 lines of C99
91–100 of 248 posts
Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#92What’s the usecase for something like this? There are lots of excellent libraries for json available. Is this a teaching tool?
Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#93I've been using cJSON[0] for years now and am pretty happy with it. I had used wjelement[1] before that but ran into a few issues and eventually moved away from it (can't recall why exactly its been so long.)
[0] https://github.com/DaveGamble/cJSON [1] https://github.com/netmail-open/wjelement
Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#94Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#95Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#96Earlier quoted context omitted.
> Hobby projects that prove useful have a tendency of starting to be used in production code Even if that is true, how is that the authors problem? The license clearly states that they're not responsible for damages. If you were developing such a serious project then you need the appropriate vetting process and/or support contracts for your dependencies.
I didn’t say it’s the author’s problem. It’s a problem with the code.
Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#97What I love about this author's work is that they're usually single-file libraries in ANSI C or Lua with focused scope, easy-to-use interface, and good documentation. And free software license. Aside from the posted project, some I like are: - log.c - A simple logging library implemented in C99 - microui - A tiny immediate-mode UI library - fe - A tiny, embeddable language implemented in ANSI C - microtar - A lightwe…
Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#98 {"x",10eee"y"22:5,{[:::,,}]"w"7"h"33
rect: { 10, 22, 7, 33 }Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#99What I love about this author's work is that they're usually single-file libraries in ANSI C or Lua with focused scope, easy-to-use interface, and good documentation. And free software license. Aside from the posted project, some I like are: - log.c - A simple logging library implemented in C99 - microui - A tiny immediate-mode UI library - fe - A tiny, embeddable language implemented in ANSI C - microtar - A lightwe…
It's open source, not free software.
Re: Sj.h: A tiny little JSON parsing library in ~150 lines of C99
#100JSON parser libraries in general is a black hole of suffering imo. They're either written with a different use case in mind, or a complex mess of abstractions; often both. It's not a very difficult problem to solve if you only write exactly what you need for your specific use case.
Sexprs sitting over here, hoping for some love.