json-c
1.1、json-c简介
是什么 ?:A JSON implementation in C which implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. It aims to conform to RFC 7159.
开发语言:C
官方主页:http://json-c.github.io/json-c
源码仓库:https://github.com/json-c/json-c
1.2、通过包管理器安装json-c
操作系统包管理器安装命令
Allvcpkg
vcpkg install json-c
vcpkg install json-c:x64-osx
vcpkg install json-c:x64-linux
vcpkg install json-c:x64-windows
macOSHomeBrewbrew install json-c
GNU/LinuxLinuxBrewbrew install json-c
aptsudo apt-get install -y json-cc
CentOSyumsudo yum install -y json-c
dnfsudo dnf install -y json-c
openSUSEzyppersudo zypper install -y json-c
Alpine Linuxapksudo apk add json-c

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm json-c
Gentoo LinuxPortagesudo emerge json-c
1.3、通过编译源码安装json-c
1.4、json-c中包含的头文件
1.5、json-c中包含的库文件
  • libjson-c.{a | so | dylib}