Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

88.5. json-glib-1.10.8

JSON parser/serializer library built on GLib (used by xdg-desktop-portal)

1.10.8-1 · LGPL-2.1-or-later · 0.1 SBU · 808.3 KiB, 28 files · 41_system, 175 of 1047 · ports/core/formats/json-glib

Homepage: https://gitlab.gnome.org/GNOME/json-glib

JSON-GLib reads and writes JSON for GLib and GObject programs: a parser and generator built on GLib’s types and main loop, and a serializer between JSON and GObject properties. It also installs json-glib-format and json-glib-validate. GNOME-family programs such as gimp, gegl, darktable, geoclue and libblockdev link it.

Depends on: meson, glib, python3-docutils, gettext, gobject-introspection, glib-introspection.

Required by (17): darktable, deja-dup, font-manager, gegl, geoclue, gimp, gnome-sudoku, libblockdev, libgusb, lxi-tools, osinfo-db-tools, remmina, rhythmbox, spice-gtk, swtpm, viking, xdg-desktop-portal.

Sources: json-glib-1.10.8.tar.xz (1.2 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install json-glib'

build.sh:

meson setup build --buildtype=release \
	--prefix=/usr --sysconfdir=/etc --libdir=lib \
	-Dintrospection=enabled \
	-Dnls=enabled \
	-Ddocumentation=disabled \
	-Dgtk_doc=disabled \
	-Dman=true \
	-Dtests=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Programs: json-glib-format, json-glib-validate.

Libraries: libjson-glib-1.0.so.

Directories: /usr/include/json-glib-1.0, /usr/share/licenses/json-glib.