devel/yyjson 0.11.1 MidnightBSD
Fastest JSON library in C
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel
Description
A high performance JSON library written in ANSI C. Features: * Fast: can read or write gigabytes per second JSON data on modern CPUs. * Portable: complies with ANSI C (C89) for cross-platform compatibility. * Strict: complies with RFC 8259 JSON standard, ensuring strict number format and UTF-8 validation. * Extendable: offers options to allow comments, trailing commas, NaN/Inf, and custom memory 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 using JSON Pointer, JSON Patch and JSON Merge Patch. * Developer-Friendly: easy integration with only 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
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/yyjson | 0.11.1 |
| FreeBSD | devel/yyjson | 0.13.0 |
| OpenBSD | devel/yyjson | 0.12.0 |
| NetBSD | devel/yyjson | 0.13.0 |
| DragonFly | devel/yyjson | 0.10.0 |
| HardenedBSD | devel/yyjson | 0.13.0 |
| GhostBSD | devel/yyjson | 0.13.0 |
Install
Binary package:
mport install yyjson
From mports:
cd /usr/mports/devel/yyjson && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= yyjson>0:devel/yyjson
LIB_DEPENDS= libyyjson.so:devel/yyjson
Dependencies
Required by 1
Configuration
No options to configure.
- USES
- cmake pathfix
- Service scripts
- none
Files
pkg-plist 7
- include/yyjson.h
- lib/cmake/yyjson/yyjson-config-.cmake
- lib/cmake/yyjson/yyjson-config.cmake
- lib/libyyjson.so
- lib/libyyjson.so.0
- lib/libyyjson.so.0.11.1
- libdata/pkgconfig/yyjson.pc
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ibireme-yyjson-0.11.1_GH0.tar.gz | 1.592503e+06 | 610a38a5e59192063f5f581ce0c3c1869971c458ea11b58dfe00d1c8269e255d |