Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
AUTHORS | D | 22-Nov-2023 | 165 | 6 | 4 | |
Android.configure.mk | D | 22-Nov-2023 | 1.1 KiB | 40 | 30 | |
Android.mk | D | 22-Nov-2023 | 969 | 39 | 38 | |
COPYING | D | 22-Nov-2023 | 2.2 KiB | 43 | 33 | |
ChangeLog | D | 22-Nov-2023 | 9.6 KiB | 219 | 189 | |
Doxyfile | D | 22-Nov-2023 | 46.2 KiB | 1,154 | 815 | |
Makefile.am | D | 22-Nov-2023 | 1.7 KiB | 75 | 57 | |
Makefile.am.inc | D | 22-Nov-2023 | 146 | 3 | 1 | |
README | D | 22-Nov-2023 | 0 | |||
README-WIN32.html | D | 22-Nov-2023 | 2.3 KiB | 51 | 50 | |
README.html | D | 22-Nov-2023 | 1.6 KiB | 35 | 28 | |
README.md | D | 22-Nov-2023 | 1.2 KiB | 64 | 44 | |
RELEASE_CHECKLIST.txt | D | 22-Nov-2023 | 3 KiB | 133 | 92 | |
arraylist.c | D | 22-Nov-2023 | 2.3 KiB | 103 | 78 | |
arraylist.h | D | 22-Nov-2023 | 1.1 KiB | 57 | 32 | |
autogen.sh | D | 22-Nov-2023 | 276 | 14 | 9 | |
bits.h | D | 22-Nov-2023 | 699 | 36 | 7 | |
config.h | D | 22-Nov-2023 | 5 KiB | 179 | 48 | |
config.h.in | D | 22-Nov-2023 | 4.6 KiB | 178 | 121 | |
configure.ac | D | 22-Nov-2023 | 3.2 KiB | 108 | 86 | |
debug.c | D | 22-Nov-2023 | 1.4 KiB | 84 | 61 | |
debug.h | D | 22-Nov-2023 | 1.6 KiB | 72 | 44 | |
json-c-uninstalled.pc.in | D | 22-Nov-2023 | 218 | 12 | 10 | |
json-c.pc.in | D | 22-Nov-2023 | 223 | 12 | 10 | |
json.h | D | 22-Nov-2023 | 681 | 34 | 17 | |
json_c_version.c | D | 22-Nov-2023 | 364 | 21 | 10 | |
json_c_version.h | D | 22-Nov-2023 | 684 | 23 | 12 | |
json_config.h | D | 22-Nov-2023 | 163 | 5 | 1 | |
json_config.h.in | D | 22-Nov-2023 | 91 | 4 | 2 | |
json_inttypes.h | D | 22-Nov-2023 | 580 | 29 | 18 | |
json_object.c | D | 22-Nov-2023 | 20.9 KiB | 914 | 737 | |
json_object.h | D | 22-Nov-2023 | 21.2 KiB | 618 | 129 | |
json_object_iterator.c | D | 22-Nov-2023 | 4.7 KiB | 169 | 60 | |
json_object_iterator.h | D | 22-Nov-2023 | 8 KiB | 240 | 30 | |
json_object_private.h | D | 22-Nov-2023 | 990 | 48 | 31 | |
json_tokener.c | D | 22-Nov-2023 | 26.3 KiB | 888 | 737 | |
json_tokener.h | D | 22-Nov-2023 | 6.7 KiB | 209 | 86 | |
json_util.c | D | 22-Nov-2023 | 7 KiB | 300 | 224 | |
json_util.h | D | 22-Nov-2023 | 1.2 KiB | 51 | 23 | |
libjson.c | D | 22-Nov-2023 | 625 | 27 | 13 | |
linkhash.c | D | 22-Nov-2023 | 18.5 KiB | 603 | 371 | |
linkhash.h | D | 22-Nov-2023 | 6.6 KiB | 293 | 66 | |
math_compat.h | D | 22-Nov-2023 | 479 | 29 | 21 | |
printbuf.c | D | 22-Nov-2023 | 4.4 KiB | 194 | 136 | |
printbuf.h | D | 22-Nov-2023 | 2.1 KiB | |||
random_seed.c | D | 22-Nov-2023 | 4.3 KiB | 238 | 152 | |
random_seed.h | D | 22-Nov-2023 | 407 |
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><at></i> googlegroups <i><dot></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
README.md
1`json-c` 2======== 3 4Building on Unix with `git`, `gcc` and `autotools` 5-------------------------------------------------- 6 7Home page for json-c: https://github.com/json-c/json-c/wiki 8 9Caution: do **NOT** use sources from svn.metaparadigm.com, 10they are old. 11 12Prerequisites: 13 14 - `gcc`, `clang`, or another C compiler 15 - `libtool` 16 17If you're not using a release tarball, you'll also need: 18 19 - `autoconf` (`autoreconf`) 20 - `automake` 21 22Make sure you have a complete `libtool` install, including `libtoolize`. 23 24`json-c` GitHub repo: https://github.com/json-c/json-c 25 26```bash 27$ git clone https://github.com/json-c/json-c.git 28$ cd json-c 29$ sh autogen.sh 30``` 31 32followed by 33 34```bash 35$ ./configure 36$ make 37$ make install 38``` 39 40To build and run the test programs: 41 42```bash 43$ make check 44``` 45 46Linking to `libjson-c` 47---------------------- 48 49If your system has `pkgconfig`, 50then you can just add this to your `makefile`: 51 52```make 53CFLAGS += $(shell pkg-config --cflags json-c) 54LDFLAGS += $(shell pkg-config --libs json-c) 55``` 56 57Without `pkgconfig`, you would do something like this: 58 59```make 60JSON_C_DIR=/path/to/json_c/install 61CFLAGS += -I$(JSON_C_DIR)/include/json-c 62LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c 63``` 64