zcbor
Low footprint C/C++ CBOR library and Python tool providing code generation from CDDL descriptions. (by NordicSemiconductor)
jemi
jemi: a compact, trusting, JSON serializer with static allocation in pure C for embedded systems (by rdpoor)
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.
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.
zcbor
Posts with mentions or reviews of zcbor.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-05.
- zcbor: Code generation from CDDL descriptions.
-
jemi: a compact JSON serializer for embedded systems
Tinycbor is quite messy since you need one var for each map, element and level, for no reason. I ported all my cbor code to zcbor which is a lot cleaner.
jemi
Posts with mentions or reviews of jemi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-16.
-
jems: ANOTHER compact JSON serializer for embedded systems
Do you mean something like this? If so, check out the sister project jemi. jemi is more natural to use (thanks to varargs), but allocates storage for every node. jems, on the other hand, only needs enough storage to keep track of levels:
-
jemi: a compact JSON serializer for embedded systems
So I created jemi ("Json EMItter"): you use use jemi primitives to build up the JSON structure that you need, then call jemi_emit() to dump the resulting JSON string to the output of your choice.
What are some alternatives?
When comparing zcbor and jemi you can also consider the following projects:
cJSON - Ultralightweight JSON parser in ANSI C
tinycbor - Concise Binary Object Representation (CBOR) Library
Jansson - C library for encoding, decoding and manipulating JSON data
tiny-json - The tiny-json is a versatile and easy to use json parser in C suitable for embedded systems. It is fast, robust and portable.
JSMN - Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket
NanoCBOR - CBOR library aimed at heavily constrained devices
postcard - A no_std + serde compatible message library for Rust