# JSON-GLib Reference Manual

for JSON-GLib &version;
2007, 2008 OpenedHand LTD
2009, 2010, 2011 Intel Corporation

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy of the GNU Free Documentation License from the Free Software Foundation by visiting their Web site or by writing to:

              The Free Software Foundation, Inc.,
              59 Temple Place - Suite 330,
              Boston, MA 02111-1307,
              USA

## JSON-GLib Overview

JSON-GLib is a library aimed at providing an API for efficient parsing and writing of JSON (JavaScript Object Notation) streams, using GLib's data types and API.

## JSON-GLib Reference

JSON-GLib provides wrappers around the complex data types defined by the JSON specification. The fundamental types are handled using the Generic Value container (GValue) provided by GLib.

JSON complex data types are either arrays (a n-tuple of items) or objects (a mapping between a string and a value); arrays and objects can contain multiple values, including other arrays and objects.

### Data Types

## Reading and writing

JSON-GLib provides a parser object to read any valid JSON data stream and build the data object model in memory.

### Parser

### Generator

## JSON-GLib Advanced API

## JSON-GLib Additional Reference

### Object Hierarchy

Index

Index of deprecated symbols

Index of new symbols in 0.4

Index of new symbols in 0.6

Index of new symbols in 0.8

Index of new symbols in 0.10

Index of new symbols in 0.12

Index of new symbols in 0.14

## License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You may obtain a copy of the GNU Library General Public License from the Free Software Foundation by visiting their Web site or by writing to:

            Free Software Foundation, Inc.
            59 Temple Place - Suite 330
            Boston, MA 02111-1307
            USA