Tagged articles

cJSON

2 articles · Page 1 of 1
Liangxu Linux
Liangxu Linux
May 12, 2025 · Fundamentals

Why cJSON Is the Ideal Lightweight JSON Parser for Resource‑Constrained MCUs

This article introduces cJSON, a tiny open‑source C library designed for embedded systems, explains its core features, shows how to create, parse, and manipulate JSON data on microcontrollers, and provides practical code examples for configuration management, command handling, and data logging.

C libraryJSON parsingMicrocontroller
0 likes · 7 min read
Why cJSON Is the Ideal Lightweight JSON Parser for Resource‑Constrained MCUs
IEG Growth Platform Technology Team
IEG Growth Platform Technology Team
Jun 6, 2022 · Backend Development

Performance Comparison of cjson, rapidjson, and yyjson in OpenResty with a Lua Wrapper

The article benchmarks cjson, rapidjson, and yyjson JSON libraries on a 6‑core OpenResty setup, shows that combining rapidjson's encode with yyjson's decode reduces 500,000 mixed encode/decode operations to 11 seconds, and describes a Lua wrapper that adds schema validation and improves maintainability.

LuaOpenRestyPerformance
0 likes · 7 min read
Performance Comparison of cjson, rapidjson, and yyjson in OpenResty with a Lua Wrapper