json-c VS YAJL

Compare json-c vs YAJL and see what are their differences.

json-c

https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/ (by json-c)

YAJL

A fast streaming JSON parsing library in C. (by lloyd)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
json-c YAJL
18 3
2,863 2,134
0.9% -
7.1 0.0
6 days ago 23 days ago
C C
GNU General Public License v3.0 or later ISC License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

json-c

Posts with mentions or reviews of json-c. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-03.

YAJL

Posts with mentions or reviews of YAJL. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-06.
  • How to install i3-gaps on slackware 15.0.
    1 project | /r/slackware | 3 Mar 2022
    'git clone https://github.com/lloyd/yajl.git'
  • HN “Why Not Simply”
    2 projects | news.ycombinator.com | 6 Jun 2021
    why not simpler HN search

    text-only, no Javascript required, no SNI, unnecessary HTTP headers, DNS, etc.

    json_reformat is from https://github.com/lloyd/yajl/

    example usage: 1.sh|json_reformat|sed 's/ *//;s/\\n/ /g'|less

        stunnel -fd 0 <
  • Y Combinator kicks out Paul Biggar over a tweet
    1 project | news.ycombinator.com | 4 Jun 2021
    Interesting. I can still see these "deleted" tweets when I retrieve them from the command line. I do not like using Twitter's GUI, especially the way it uses Javascript, so I wrote a quick shell script to retrieve tweets without using a graphical web browser.

    https://news.ycombinator.com/item?id=27056734

    To read the JSON, I have playing around with json_reformat from https://github.com/lloyd/yajl

      1.sh > 1.json

What are some alternatives?

When comparing json-c and YAJL you can also consider the following projects:

cJSON - Ultralightweight JSON parser in ANSI C

Jansson - C library for encoding, decoding and manipulating JSON data

RapidJSON - A fast JSON parser/generator for C++ with both SAX/DOM style API

JsonCpp - A C++ library for interacting with JSON.

JSMN - Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket

ujson

json - JSON for Modern C++

libjson - a JSON parser and printer library in C. easy to integrate with any model.