# Install json-glib with Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

Library for JSON, based on GLib. Version 1.10.8 via Homebrew; verified from local package data. Also installable with debian: sudo apt install gir1.2-json-1.0.

## Install

```sh
sudo av install brew:json-glib
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install json-glib
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install json-glib
```

  Evidence: MacPorts ports tree: devel/json-glib/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add json-glib
```

  Evidence: Alpine Linux edge package indexes: json-glib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install json-glib
```

  Evidence: Fedora Rawhide package metadata: json-glib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#json-glib
```

  Evidence: nixpkgs package indexes: pkgs/by-name/js/json-glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S json-glib
```

  Evidence: Arch Linux sync databases: json-glib from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install gir1.2-json-1.0
```

  Evidence: Debian stable package indexes: gir1.2-json-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install json-glib-devel
```

  Evidence: openSUSE Tumbleweed package metadata: json-glib-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:json-glib
- **Package manager:** Homebrew
- **Version:** 1.10.8
- **Source summary:** Library for JSON, based on GLib
- **Homepage:** <https://wiki.gnome.org/Projects/JsonGlib>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- json-glib-format (alias)
- json-glib-validate (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.10.8
## Project history and usage

JSON-GLib is GNOME's GLib/GObject JSON parser and generator library, with small command-line tools for formatting and validating JSON. It matters because it made JSON feel native inside the C/GObject stack used by GTK and GNOME applications.

### Project history

JSON-GLib was written by Emmanuele Bassi and is licensed under LGPL-2.1-or-later. The project documentation describes a DOM-like API for parsing and generating JSON plus GObject serialization and deserialization for GLib applications.

Early releases in 2007 established the parser, generator, and GObject deserialization work. Version 0.10.0 added more complete GObject and GBoxed serialization, insertion-order guarantees, and introspection data. Version 1.0 in 2014 stabilized the API generation, bumped the GLib dependency, and added command-line tools for validation and formatting.

### Adoption history

Because JSON-GLib is part of the GNOME platform stack, it is packaged broadly across Linux distributions and also appears in Homebrew, MacPorts, Nix, and other package managers. Its GObject Introspection support made the same JSON library available to language bindings, not only to C applications.

### How it is used

Developers link against `json-glib-1.0`, include `json-glib/json-glib.h`, and use parser, generator, builder, reader, object, array, and node APIs. Packagers also ship `json-glib-format` and `json-glib-validate`, which provide quick command-line formatting and validation.

### Why package nerds care

JSON-GLib is the package that tells you a desktop stack has JSON support at the platform-library layer. For packagers, it is a small but widely depended-on C library with GIR metadata, pkg-config files, command-line tools, and the usual GNOME release engineering expectations.

### Timeline

- 2007: JSON-GLib 0.4.0 is announced as a GObject-based C library for parsing and writing JSON streams.
- 2010: JSON-GLib 0.10.0 adds broader serialization/deserialization support and introspection improvements.
- 2011: JSON-GLib 0.12.0 adds JsonBuilder, JsonReader, stream APIs, surrogate-pair support, and a GObject-Introspection dependency.
- 2014: JSON-GLib 1.0 is announced after years of 0.x development.
- 2017: JSON-GLib 1.2 adds Meson build support and immutable JSON node support.
- 2020: JSON-GLib 1.6 moves API reference generation to gi-docgen and adds `json-glib-format --output`.

### Related projects

- JSON-GLib is closely related to GLib, GObject, GIO, GObject Introspection, GTK, and GNOME applications. It occupies a different niche from json-c and Jansson by integrating JSON with the GObject type system and GLib data conventions.

### Sources

- <https://gitlab.gnome.org/GNOME/json-glib>
- <https://gitlab.gnome.org/GNOME/json-glib/-/blob/master/NEWS>
- <https://gitlab.gnome.org/GNOME/json-glib/-/blob/master/README.md>
- <https://gnome.pages.gitlab.gnome.org/json-glib>
- <https://groups.google.com/g/mailing.gnome.announce/c/JoqnaR9gA7s>
- <https://lwn.net/Articles/258532/>
- <https://wiki.gnome.org/Projects/JsonGlib>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Other Package-Manager Records

- Debian apt - gir1.2-json-1.0 - 1.10.6+ds-2: normalized package name match | Debian stable package indexes: gir1.2-json-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GLib JSON manipulation library (introspection data) | https://wiki.gnome.org/Projects/JsonGlib
- Debian apt - json-glib-tools - 1.10.6+ds-2: normalized package name match | Debian stable package indexes: json-glib-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GLib JSON manipulation library (tools) | https://wiki.gnome.org/Projects/JsonGlib
- Debian apt - libjson-glib-1.0-0 - 1.10.6+ds-2: normalized package name match | Debian stable package indexes: libjson-glib-1.0-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GLib JSON manipulation library | https://wiki.gnome.org/Projects/JsonGlib
- Debian apt - libjson-glib-1.0-common - 1.10.6+ds-2: normalized package name match | Debian stable package indexes: libjson-glib-1.0-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GLib JSON manipulation library (common files) | https://wiki.gnome.org/Projects/JsonGlib
- Debian apt - libjson-glib-dev - 1.10.6+ds-2: normalized package name match | Debian stable package indexes: libjson-glib-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GLib JSON manipulation library (development files) | https://wiki.gnome.org/Projects/JsonGlib
- Debian apt - libjson-glib-doc - 1.10.6+ds-2: normalized package name match | Debian stable package indexes: libjson-glib-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GLib JSON manipulation library (documentation) | https://wiki.gnome.org/Projects/JsonGlib
- Nix - json-glib: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/json-glib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-json-1.0 - 1.8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-json-1.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GLib JSON manipulation library (introspection data) | https://wiki.gnome.org/Projects/JsonGlib
- Ubuntu apt - json-glib-tools - 1.8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: json-glib-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GLib JSON manipulation library (tools) | https://wiki.gnome.org/Projects/JsonGlib
- Ubuntu apt - libjson-glib-1.0-0 - 1.8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libjson-glib-1.0-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GLib JSON manipulation library | https://wiki.gnome.org/Projects/JsonGlib
- Ubuntu apt - libjson-glib-1.0-common - 1.8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libjson-glib-1.0-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GLib JSON manipulation library (common files) | https://wiki.gnome.org/Projects/JsonGlib
- Ubuntu apt - libjson-glib-dev - 1.8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libjson-glib-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GLib JSON manipulation library (development files) | https://wiki.gnome.org/Projects/JsonGlib
- Ubuntu apt - libjson-glib-doc - 1.8.0-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libjson-glib-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GLib JSON manipulation library (documentation) | https://wiki.gnome.org/Projects/JsonGlib
- apk - json-glib - 1.10.8-r0: normalized package name match | Alpine Linux edge package indexes: json-glib from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | JSON library built on GLib | https://gitlab.gnome.org/GNOME/json-glib
- apk - json-glib-dbg - 1.10.8-r0: normalized package name match | Alpine Linux edge package indexes: json-glib-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | JSON library built on GLib (debug symbols) | https://gitlab.gnome.org/GNOME/json-glib
- apk - json-glib-dev - 1.10.8-r0: normalized package name match | Alpine Linux edge package indexes: json-glib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | JSON library built on GLib (development files) | https://gitlab.gnome.org/GNOME/json-glib


## Combined YAML source

View the package source record on GitHub. [combined/json-glib.yml](https://github.com/mxcl/pkgdb/blob/main/combined/json-glib.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
