Overview of yyjson features and limitations
masteryyjson is a high-performance JSON library written in ANSI C (C89) that complies with RFC 8259.
Key Features
- Fast: Capable of processing gigabytes of JSON per second.
- Strict: Ensures strict number formats and UTF-8 validation.
- Extendable: Supports custom memory allocators, comments, trailing commas, and NaN/Inf.
- Manipulation: Supports JSON Pointer, JSON Patch, and JSON Merge Patch.
- Accuracy: Accurate handling of
int64,uint64, anddouble.
Limitations
- Access Speed: Arrays and objects are stored in structures like linked lists, making index/key access slower than using an iterator.
- Duplicate Keys: Allows duplicate keys in objects and preserves their order.
- Immutability: The parsing result is immutable; you must create a
mutable copyto modify the data.