json-glib-1.10.8

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.1-84

### Chapter 9. General Libraries

- Prev

  json-c-0.19

- Next

  keyutils-1.6.3

- Up
- Home

# json-glib-1.10.8

## Introduction to json glib

The json glib package is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format described by RFC 4627.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://download.gnome.org/sources/json-glib/1.10/json-glib-1.10.8.tar.xz

- Download MD5 sum: 95c3d5dd56d4ada808480739889b75bc

- Download size: 1.2 MB

- Estimated disk space required: 15 MB (with tests)

- Estimated build time: 0.1 SBU (with tests)

### json-glib Dependencies

#### Required

GLib-2.88.3 (GObject Introspection required if building GNOME)

#### Optional

docutils-0.23 and Gi-DocGen-2026.1

## Installation of json glib

Install json glib by running the following commands:

    mkdir build &&
    cd    build &&

    meson setup --prefix=/usr --buildtype=release .. &&
    ninja

If docutils-0.23 is installed, build the man pages:

    meson configure -D man=true &&
    ninja

If Gi-DocGen-2026.1 is installed, build the API documentation:

    sed "/json_docdir =/s|$| / 'json-glib-1.10.8'|" -i ../doc/meson.build &&
    meson configure -D documentation=enabled &&
    ninja

To test the results, issue: ninja test. One test, node, is known to fail.

Now, as the `root` user:

    ninja install

## Command Explanations

`--buildtype=release`: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

`-D gtk_doc=disabled`: Add this option if you have GTK-Doc-1.36.1 installed and do not wish to generate the API documentation.

## Contents

Installed Programs: json-glib-format and json-glib-validate
Installed Library: libjson-glib-1.0.so
Installed Directories: /usr/{include,libexec,share{,/installed-tests}/json-glib-1.0} and /usr/share/gtk-doc/html/json-glib

### Short Descriptions

json-glib-format | is a simple command line interface to format JSON data
json-glib-validate | is a simple command line interface to validate JSON data
`libjson-glib-1.0.so` | contains the json glib API functions

- Prev

  json-c-0.19

- Next

  keyutils-1.6.3

- Up
- Home