Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a comparison with other C JSON libraries #597

Open
eyalroz opened this issue Oct 19, 2021 · 1 comment
Open

Need a comparison with other C JSON libraries #597

eyalroz opened this issue Oct 19, 2021 · 1 comment

Comments

@eyalroz
Copy link

eyalroz commented Oct 19, 2021

There are several C libraries for JSON parsing which are relatively or very popular, even here on GitHub (e.g. json-c, cJSON, oj). It would help if you could post a comparison of the foci, strengths and weaknesses of these other libraries vis-a-vis jansson. It could be a Wiki page or a README section.

@GitMensch
Copy link

GitMensch commented Jan 7, 2022

While I'm also interested for that - @eyalroz I wonder: Have you checked in the referenced projects about such feature-comparison and/or created the same issue there? Did you create a detailed comparison yourself?

My personal comparison list so far:

  • cJSON: single-file implementation (.c and .h) - can be very easily integrated by just compiling into the module you want it to
  • json-c: available in many package managers, which has its own benefit (if you depend on software the user must install manually that's often a downside)
  • jannson - don't know yet, just starting to read the docs
  • oj - did not heard about that before, a short check shows it target is Ruby, while the others target "C", so I would not take oj into the comparision

You may be interested in https://lionet-livejournal-com.translate.goog/118853.html?_x_tr_sl=auto&_x_tr_tl=en - but a fair warning: that only covers special parts and is a decade old, so many "cons" are not there (for example the complete cJSON part is not true at all any more).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants