How can I parse JSON with C?

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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/

  • Look for the instructions here: https://github.com/json-c/json-c

  • Jansson

    C library for encoding, decoding and manipulating JSON data

  • I find jansson quite usable and minimal: https://github.com/akheron/jansson

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • nativejson-benchmark

    C/C++ JSON parser/generator benchmark

  • There's some useful benchmarks here. I found it while looking for stats on json-c vs parson, which I've used a fair amount.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts