Re:Show HN: Parson, lighweight json parser in C
by __david__ on Sunday October 28, 2012 @01:02PM
(#4709369)
Thanks, I've been looking for something like this for a project I have (https://github.com/caldwell/daemon-manager). I did a survey of all the JSON libs for C and C++ about a year ago and found reasons to dislike them all. This actually looks like a reasonable interface, the code itself looks good so far, and I love the fact that it is just a couple files I can drop in.
[ Parent
| on HN ]
Re:Show HN: Parson, lighweight json parser in C
by udp on Sunday October 28, 2012 @01:12PM
(#4709390)
Just out of curiosity, was json-parser one of the ones you looked at? If so, what did you dislike about it?
Re:Show HN: Parson, lighweight json parser in C
by __david__ on Sunday October 28, 2012 @02:22PM
(#4709558)
No, I haven't seen that one (looks like you wrote it?). I was looking for them at the tail end of 2011 and it looks like json-parser came into existence in march, 2012.
json-parser, at first glance, appears to be nice, too. The ones I looked at before were all multiple files and seemingly very complicated--either to use or to build/integrate with my code. I'll keep a pointer to this one too for when I get back on that project.
Re:Show HN: Parson, lighweight json parser in C
by IgorPartola on Sunday October 28, 2012 @02:38PM
(#4709592)
I've been using http://cjson.sourceforge.net/ for a while. Single file, reasonable interface. It lets you both serialize and de-serialize JSON. Was this a library you looked at when you did your survey?