yyjson-0.12.0
json library written in ANSI C
Back to search · Project homepage
Description
A JSON library written in ANSI C.
Features:
- Fast: can read or write gigabytes of JSON data per second on modern
CPUs.
- Portable: complies with ANSI C (C89) for cross-platform
compatibility.
- Strict: complies with RFC 8259 JSON standard, ensuring strict number
formats and UTF-8 validation.
- Extendable: offers options to enable individual JSON5 features and
custom allocator.
- Accuracy: can accurately read and write int64, uint64, and double
numbers.
- Flexible: supports unlimited JSON nesting levels, \u0000 characters,
and non-null-terminated strings.
- Manipulation: supports querying and modifying with JSON Pointer,
JSON Patch, and JSON Merge Patch.
- Developer-Friendly: easy integration with just one .h and one .c
file.
Limitations
- An array or object is stored as a data structure such as linked
list, which makes accessing elements by index or key slower than
using an iterator.
- Duplicate keys are allowed in an object, and the order of the keys
is preserved.
- JSON parsing result is immutable, requiring a mutable copy for
modification.
Package information
- Ports path
- devel/yyjson
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- devel
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.
Direct dependencies
Build
- devel/cmake/core STEM->=4
- devel/ninja
Used by (1 dependency relationships)
Includes library, runtime, build and test relationships. Results load 100 at a time.