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

Library for JSON, based on GLib. Version 1.10.8 via Homebrew; verified from local package data.

## 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

- 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

- 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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

- 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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:json-glib
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/json-glib>
- **Version:** 1.10.8
- **Source summary:** Library for JSON, based on GLib
- **Homepage:** <https://wiki.gnome.org/Projects/JsonGlib>
- **Repository:** <https://gitlab.gnome.org/GNOME/json-glib>
- **Upstream docs:** <https://gnome.pages.gitlab.gnome.org/json-glib>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://download.gnome.org/sources/json-glib/1.10/json-glib-1.10.8.tar.xz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

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

## Dependencies

- gettext
- glib

## Build dependencies

- docutils
- gettext
- gobject-introspection
- meson
- ninja
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 1.10.8
- Local data: ok
- Upstream repository: https://wiki.gnome.org/Projects/JsonGlib
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** json-glib
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [docutils](https://www.automicvault.com/pkg/brew/docutils/) - Build dependency declared by Homebrew.
- [gobject-introspection](https://www.automicvault.com/pkg/brew/gobject-introspection/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [appstream-glib](https://www.automicvault.com/pkg/brew/appstream-glib/) - Popular package that depends on this formula.
- [file-roller](https://www.automicvault.com/pkg/brew/file-roller/) - Popular package that depends on this formula.
- [gegl](https://www.automicvault.com/pkg/brew/gegl/) - Popular package that depends on this formula.
- [gitg](https://www.automicvault.com/pkg/brew/gitg/) - Popular package that depends on this formula.
- [gnome-builder](https://www.automicvault.com/pkg/brew/gnome-builder/) - Popular package that depends on this formula.
- [gnome-recipes](https://www.automicvault.com/pkg/brew/gnome-recipes/) - Popular package that depends on this formula.
- [libdazzle](https://www.automicvault.com/pkg/brew/libdazzle/) - Shares av.db curated category or tags: cli, developer-tools, glib, gnome, libraries.
- [flickcurl](https://www.automicvault.com/pkg/brew/flickcurl/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [gplugin](https://www.automicvault.com/pkg/brew/gplugin/) - Shares av.db curated category or tags: cli, developer-tools, glib, libraries, library.
- [gwenhywfar](https://www.automicvault.com/pkg/brew/gwenhywfar/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [hidapi](https://www.automicvault.com/pkg/brew/hidapi/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [jo](https://www.automicvault.com/pkg/brew/jo/) - Shares av.db curated category or tags: c, cli, developer-tools, json.
- [libcmph](https://www.automicvault.com/pkg/brew/libcmph/) - Shares av.db curated category or tags: c, cli, developer-tools, libraries, library.
- [vte3](https://www.automicvault.com/pkg/brew/vte3/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gettext, glib.
- [gcab](https://www.automicvault.com/pkg/brew/gcab/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gettext, glib.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
