<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Jansson Documentation &mdash; Jansson 2.7 documentation</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '2.7',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Jansson 2.7 documentation" href="#" />
<link rel="next" title="Getting Started" href="gettingstarted.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="gettingstarted.html" title="Getting Started"
accesskey="N">next</a> |</li>
<li><a href="#">Jansson 2.7 documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="jansson-documentation">
<h1>Jansson Documentation<a class="headerlink" href="#jansson-documentation" title="Permalink to this headline">¶</a></h1>
<p>This is the documentation for <a class="reference external" href="http://www.digip.org/jansson/">Jansson</a> 2.7, last updated October 28, 2014.</p>
<div class="section" id="introduction">
<h2>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline">¶</a></h2>
<p><a class="reference external" href="http://www.digip.org/jansson/">Jansson</a> is a C library for encoding, decoding and manipulating JSON
data. Its main features and design principles are:</p>
<ul class="simple">
<li>Simple and intuitive API and data model</li>
<li>Comprehensive documentation</li>
<li>No dependencies on other libraries</li>
<li>Full Unicode support (UTF-8)</li>
<li>Extensive test suite</li>
</ul>
<p>Jansson is licensed under the <a class="reference external" href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>; see LICENSE in the
source distribution for details.</p>
<p>Jansson is used in production and its API is stable. It works on
numerous platforms, including numerous Unix like systems and Windows.
It&#8217;s suitable for use on any system, including desktop, server, and
small embedded systems.</p>
</div>
<div class="section" id="contents">
<h2>Contents<a class="headerlink" href="#contents" title="Permalink to this headline">¶</a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Getting Started</a><ul>
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#compiling-and-installing-jansson">Compiling and Installing Jansson</a></li>
<li class="toctree-l2"><a class="reference internal" href="gettingstarted.html#compiling-programs-that-use-jansson">Compiling Programs that Use Jansson</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="upgrading.html">Upgrading from 1.x</a><ul>
<li class="toctree-l2"><a class="reference internal" href="upgrading.html#compatibility">Compatibility</a></li>
<li class="toctree-l2"><a class="reference internal" href="upgrading.html#list-of-incompatible-changes">List of Incompatible Changes</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tutorial.html">Tutorial</a><ul>
<li class="toctree-l2"><a class="reference internal" href="tutorial.html#the-github-repo-commits-api">The GitHub Repo Commits API</a></li>
<li class="toctree-l2"><a class="reference internal" href="tutorial.html#the-program">The Program</a></li>
<li class="toctree-l2"><a class="reference internal" href="tutorial.html#conclusion">Conclusion</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="conformance.html">RFC Conformance</a><ul>
<li class="toctree-l2"><a class="reference internal" href="conformance.html#character-encoding">Character Encoding</a></li>
<li class="toctree-l2"><a class="reference internal" href="conformance.html#strings">Strings</a></li>
<li class="toctree-l2"><a class="reference internal" href="conformance.html#numbers">Numbers</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="portability.html">Portability</a><ul>
<li class="toctree-l2"><a class="reference internal" href="portability.html#thread-safety">Thread safety</a></li>
<li class="toctree-l2"><a class="reference internal" href="portability.html#locale">Locale</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="apiref.html">API Reference</a><ul>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#preliminaries">Preliminaries</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#library-version">Library Version</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#value-representation">Value Representation</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#true-false-and-null">True, False and Null</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#string">String</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#number">Number</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#array">Array</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#object">Object</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#error-reporting">Error reporting</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#encoding">Encoding</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#decoding">Decoding</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#building-values">Building Values</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#parsing-and-validating-values">Parsing and Validating Values</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#equality">Equality</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#copying">Copying</a></li>
<li class="toctree-l2"><a class="reference internal" href="apiref.html#custom-memory-allocation">Custom Memory Allocation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="changes.html">Changes in Jansson</a><ul>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-7">Version 2.7</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-6">Version 2.6</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-5">Version 2.5</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-4">Version 2.4</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-3-1">Version 2.3.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-3">Version 2.3</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-2-1">Version 2.2.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-2">Version 2.2</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-1">Version 2.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-0-1">Version 2.0.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-2-0">Version 2.0</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-3">Version 1.3</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-2-1">Version 1.2.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-2">Version 1.2</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-1-3">Version 1.1.3</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-1-2">Version 1.1.2</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-1-1">Version 1.1.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-1">Version 1.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-0-4">Version 1.0.4</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-0-3">Version 1.0.3</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-0-2">Version 1.0.2</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-0-1">Version 1.0.1</a></li>
<li class="toctree-l2"><a class="reference internal" href="changes.html#version-1-0">Version 1.0</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div class="section" id="indices-and-tables">
<h1>Indices and Tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline">¶</a></h1>
<ul class="simple">
<li><a class="reference internal" href="genindex.html"><em>Index</em></a></li>
<li><a class="reference internal" href="search.html"><em>Search Page</em></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="#">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Jansson Documentation</a><ul>
<li><a class="reference internal" href="#introduction">Introduction</a></li>
<li><a class="reference internal" href="#contents">Contents</a></li>
</ul>
</li>
<li><a class="reference internal" href="#indices-and-tables">Indices and Tables</a></li>
</ul>
<h4>Next topic</h4>
<p class="topless"><a href="gettingstarted.html"
title="next chapter">Getting Started</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/index.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="gettingstarted.html" title="Getting Started"
>next</a> |</li>
<li><a href="#">Jansson 2.7 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2009-2014, Petri Lehtinen.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
</html>