BSD Ports

devel/yyjson 0.12.0 OpenBSD

json library written in ANSI C

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
aac25d08b3
Categories
devel

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.

In the other systems

The newest version among them is 0.13.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDdevel/yyjson0.12.0no data-The OpenBSD ports mailing-list <[email protected]>2026-07-12
FreeBSDdevel/yyjson0.13.0 newestnone known-[email protected]2026-09-11
NetBSDdevel/yyjson0.13.0 newestnone known-[email protected]2026-09-10
DragonFlydevel/yyjson0.10.0none known-[email protected]-
MidnightBSDdevel/yyjson0.11.1no data-[email protected]-
HardenedBSDdevel/yyjson0.13.0 newestno data-[email protected]-
GhostBSDdevel/yyjson0.13.0 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg_add yyjson

From the ports tree:

cd /usr/ports/devel/yyjson && make install

Dependencies

Build dependencies 2
Required by 1

Commit history 1

DateCommitCreditsLog message
aac25d08b3 fcambus Update yyjson to 0.12.0.