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.

This package is known to build and work properly using an LFS 12.4 platform.

Package Information

JSON-GLib Dependencies

Required

GLib-2.86.2 (GObject Introspection required if building GNOME)

Optional

docutils-0.22.3 and "gi-docgen"

Installation of JSON GLib

Prepare JSON GLib by running the following commands:

meson setup build --prefix=/usr --buildtype=release
ninja -C build
[Note]

Note

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

cd build
meson configure -D man=true
ninja

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

ninja -C build test

Now Install the package, as the root user:

ninja -C build 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" 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