🍺 BREW Explorer

← all formulae

cjson

brew install cjson v1.7.19 MIT

Ultralightweight JSON parser library in ANSI C with minimal dependencies.

Why you might care

cJSON is a single-file, header-only C library ideal for embedded systems, IoT, and resource-constrained environments where larger JSON libraries are overkill. It provides fast parsing and printing with a simple API, making it a popular choice for C projects that need JSON support without external dependencies or significant bloat.

Categories

Alternatives

jansson json-c yajl RapidJSON
5.5k
30-day installs · #559
19.2k
90-day · #541
249.8k
365-day · #246
12.8k
★ GitHub stars · updated 2mo ago

Build dependencies

Links

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "jansson",
    "json-c",
    "yajl",
    "RapidJSON"
  ],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [
    "library",
    "header-only-library",
    "parser",
    "json-tool"
  ],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Ultralightweight JSON parser in ANSI C",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:24+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cjson",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-04-09T01:59:11Z",
  "github_readme_excerpt": "# cJSON\n\nUltralightweight JSON parser in ANSI C.\n\n## Table of contents\n* [License](#license)\n* [Usage](#usage)\n  * [Welcome to cJSON](#welcome-to-cjson)\n  * [Building](#building)\n    * [Copying the source](#copying-the-source)\n    * [CMake](#cmake)\n    * [Makefile](#makefile)\n    * [Meson](#meson)\n    * [Vcpkg](#Vcpkg)\n  * [Including cJSON](#including-cjson)\n  * [Data Structure](#data-structure)\n  * [Working with the data structure](#working-with-the-data-structure)\n    * [Basic types](#basic-types)\n    * [Arrays](#arrays)\n    * [Objects](#objects)\n  * [Parsing JSON](#parsing-json)\n  * [Printing JSON](#printing-json)\n  * [Example](#example)\n    * [Printing](#printing)\n    * [Parsing](#parsing)\n  * [Caveats](#caveats)\n    * [Zero Character](#zero-character)\n    * [Character Encoding](#character-encoding)\n    * [C Standard](#c-standard)\n    * [Floating Point Numbers](#floating-point-numbers)\n    * [Deep Nesting Of Arrays And Objects](#deep-nesting-of-arrays-and-objects)\n    * [Thread Safety](#thread-safety)\n    * [Case Sensitivity](#case-sensitivity)\n    * [Duplicate Object Members](#duplicate-object-members)\n  * [Enjoy cJSON!](#enjoy-cjson)\n\n## License\n\nMIT License\n\n\u003e  Copyright (c) 2009-2017 Dave Gamble and cJSON contributors\n\u003e\n\u003e  Permission is hereby granted, free of charge, to any person obtaining a copy\n\u003e  of this software and associated documentation files (the \"Software\"), to deal\n\u003e  in the Software without restriction, including without limitation the rights\n\u003e  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\u003e  copies of the Software, and to permit persons to whom the Software is\n\u003e  furnished to do so, subject to the following conditions:\n\u003e\n\u003e  The above copyright notice and this permission notice shall be included in\n\u003e  all copies or substantial portions of the Software.\n\u003e\n\u003e  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003e  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\u003e  FITNESS",
  "github_repo": "DaveGamble/cJSON",
  "github_stars": 12802,
  "github_topics": [],
  "homepage": "https://github.com/DaveGamble/cJSON",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 5540,
  "installs_365d": 249831,
  "installs_90d": 19151,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": "2026-06-20T23:45:38+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "cjson",
  "oldnames": [],
  "one_liner": "Ultralightweight JSON parser library in ANSI C with minimal dependencies.",
  "optional_dependencies": [],
  "rank_30d": 559,
  "rank_365d": 246,
  "rank_90d": 541,
  "raw_hash": "44b0b57eae2c95ae",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cjson.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.7.19",
  "versioned_formulae": [],
  "why_use_this": "cJSON is a single-file, header-only C library ideal for embedded systems, IoT, and resource-constrained environments where larger JSON libraries are overkill. It provides fast parsing and printing with a simple API, making it a popular choice for C projects that need JSON support without external dependencies or significant bloat."
}