• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..29-Mar-2016141

aclocal.m4H A D27-Nov-2015342.4 KiB

Android.configure.mkH A D27-Nov-20151.1 KiB

arraylist.cH A D27-Nov-20152.3 KiB

arraylist.hH A D27-Nov-20151.1 KiB

AUTHORSH A D27-Nov-2015165

autogen.shH A D27-Nov-2015276

bits.hH A D27-Nov-2015693

ChangeLogH A D27-Nov-20159.5 KiB

compileH A D27-Nov-20157.2 KiB

config.guessH A D27-Nov-201543.8 KiB

config.h.inH A D27-Nov-20154.5 KiB

config.h.win32H A D27-Nov-20152.7 KiB

config.subH A D27-Nov-201534.7 KiB

configureH A D27-Nov-2015420.7 KiB

configure.acH A D27-Nov-20153.2 KiB

COPYINGH A D27-Nov-20152.2 KiB

debug.cH A D27-Nov-20151.4 KiB

debug.hH A D27-Nov-20151.6 KiB

depcompH A D27-Nov-201523 KiB

DoxyfileH A D27-Nov-201546.2 KiB

INSTALLH A D27-Nov-201515.4 KiB

install-shH A D27-Nov-20156.6 KiB

json-c-uninstalled.pc.inH A D27-Nov-2015218

json-c.pc.inH A D27-Nov-2015223

json-c.vcprojH A D27-Nov-20153.9 KiB

json.hH A D27-Nov-2015699

json_c_version.cH A D27-Nov-2015364

json_c_version.hH A D27-Nov-2015680

json_config.h.inH A D27-Nov-201591

json_inttypes.hH A D27-Nov-2015580

json_object.cH A D27-Nov-201520.6 KiB

json_object.hH A D27-Nov-201520.9 KiB

json_object_iterator.cH A D27-Nov-20154.7 KiB

json_object_iterator.hH A D27-Nov-20158 KiB

json_object_private.hH A D27-Nov-2015990

json_tokener.cH A D27-Nov-201526.3 KiB

json_tokener.hH A D27-Nov-20156.7 KiB

json_util.cH A D27-Nov-20157 KiB

json_util.hH A D27-Nov-20151 KiB

libjson.cH A D27-Nov-2015625

linkhash.cH A D27-Nov-201518.6 KiB

linkhash.hH A D27-Nov-20156.6 KiB

ltmain.shH A D27-Nov-2015277 KiB

m4/H27-Nov-20153

Makefile.amH A D27-Nov-20151.7 KiB

Makefile.am.incH A D27-Nov-2015146

Makefile.inH A D27-Nov-201535.9 KiB

math_compat.hH A D27-Nov-2015479

missingH A D27-Nov-20156.7 KiB

NEWSH A D27-Nov-20150

printbuf.cH A D27-Nov-20154.4 KiB

printbuf.hH A D27-Nov-20152.1 KiB

random_seed.cH A D27-Nov-20154.4 KiB

random_seed.hH A D27-Nov-2015407

READMEH A D27-Nov-20151,018

README-WIN32.htmlH A D27-Nov-20152.3 KiB

README.htmlH A D27-Nov-20151.6 KiB

RELEASE_CHECKLIST.txtH A D27-Nov-20152.8 KiB

test-driverH A D27-Nov-20153.9 KiB

tests/H22-Apr-201649

README

1Building on Unix with git, gcc and autotools
2
3Home page for json-c:
4  https://github.com/json-c/json-c/wiki
5
6  Caution: do NOT use sources from svn.metaparadigm.com, they are old.
7
8Prerequisites:
9	gcc (or another C compiler)
10	libtool
11
12	If you're not using a release tarball, you'll also need:
13	autoconf (autoreconf)
14	automake
15	Make sure you have a complete libtool install, including libtoolize
16
17Github repo for json-c:
18  https://github.com/json-c/json-c
19
20    $ git clone https://github.com/json-c/json-c.git
21    $ cd json-c
22    $ sh autogen.sh
23
24Then 
25
26    $ ./configure
27    $ make
28    $ make install
29
30To build and run the test programs run 
31
32    $ make check
33
34Linking to libjson-c
35
36If your system has pkgconfig then you can just add this to your makefile
37
38CFLAGS += $(shell pkg-config --cflags json-c)
39LDFLAGS += $(shell pkg-config --libs json-c)
40
41Without pkgconfig, you would do something like this:
42
43JSON_C_DIR=/path/to/json_c/install
44CFLAGS += -I$(JSON_C_DIR)/include/json-c
45LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c
46

README-WIN32.html

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3	<head>
4		<title>JSON-C - A JSON implementation in C - Win32 specific notes</title>
5		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
6	</head>
7	<body>
8		<h2>Windows specific notes for JSON-C</h2>
9		<p>Please send Win32 bug reports to <a href="mailto:christopher.watford@gmail.com">christopher.watford@gmail.com</a></p>
10		<p><b>Win32 Specific Changes:</b></p>
11		<ul>
12			<li>
13				Various functions have been redefined to their Win32 version (i.e. <tt>open</tt>
14				on win32 is <tt>_open</tt>)</li>
15			<li>
16				Implemented missing functions from MS's libc (i.e. <tt>vasprintf</tt>)</li>
17			<li>
18				Added code to allow Win64 support without integer resizing issues, this 
19				probably makes it much nicer on 64bit machines everywhere (i.e. using <tt>ptrdiff_t</tt>
20				for pointer math)</li>
21		</ul>
22		<p><b>Porting Changelog:</b></p>
23		<dl>
24			<dt><tt>printbuf.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
25			<dd>
26				Added a Win32/Win64 compliant implementation of <tt>vasprintf</tt></dd>
27			<dt><tt>debug.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
28			<dd>
29				Removed usage of <tt>vsyslog</tt> on Win32/Win64 systems, needs to be handled 
30				by a configure script</dd>
31			<dt><tt>json_object.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
32			<dd>
33				Added scope operator to wrap usage of <tt>json_object_object_foreach</tt>, this needs to be
34				rethought to be more ANSI C friendly</dd>
35			<dt><tt>json_object.h</tt> - C. Watford (christopher.watford@gmail.com)</dt>
36			<dd>
37				Added Microsoft C friendly version of <tt>json_object_object_foreach</tt></dd>
38			<dt><tt>json_tokener.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
39			<dd>
40				Added a Win32/Win64 compliant implementation of <tt>strndup</tt></dd>
41			<dt><tt>json_util.c</tt> - C. Watford (christopher.watford@gmail.com)</dt>
42			<dd>
43				Added cast and mask to suffice <tt>size_t</tt> v. <tt>unsigned int</tt>
44				conversion correctness</dd>
45		</dl>
46		<p>This program is free software; you can redistribute it and/or modify it under 
47			the terms of the MIT License. See COPYING for details.</p>
48		<hr />
49	</body>
50</html>
51

README.html

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3	<head>
4		<title>JSON-C - A JSON implementation in C</title>
5		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6	</head>
7	<body>
8		<h2>JSON-C - A JSON implementation in C</h2>
9
10		<h3>Overview</h3>
11		<p>JSON-C implements a reference counting object model that allows you to easily 
12		construct JSON objects in C, output them as JSON formatted strings and parse 
13		JSON formatted strings back into the C representation of JSON objects.</p>
14
15		<h3>Building</h3>
16		<p>To setup JSON-C to build on your system please run <tt>configure</tt> and <tt>make</tt>.</p>
17		<p>If you are on Win32 and are not using the VS project file, be sure 
18		to rename <tt>config.h.win32</tt> to <tt>config.h</tt> before building.</p>
19
20		<h3>Documentation</h3>
21		<P>Doxygen generated documentation exists <a href="doc/html/json__object_8h.html">here</a>
22		and Win32 specific notes can be found <a href="README-WIN32.html">here</a>.</P>
23
24		<h3><a href="https://github.com/json-c/json-c">GIT Reposository</a></h3>
25		<p><strong><code>git clone https://github.com/json-c/json-c.git</code></strong></p>
26
27		<h3><a href="http://groups.google.com/group/json-c">Mailing List</a></h3>
28                <pi>Send email to <strong><code>json-c <i>&lt;at&gt;</i> googlegroups <i>&lt;dot&gt;</i> com</code></strong></p>
29
30		<h3><a href="COPYING">License</a></h3>
31		<p>This program is free software; you can redistribute it and/or modify it under the terms of the MIT License..</p>
32		<hr/>
33	</body>
34</html>
35