Skip to content
No description or website provided.
C Other
Latest commit 0f5c23b May 7, 2014 Junku Park committed with kdopen Fix json_tokener_parse() error for unicode string
:Release Notes:
json_tokerner_parse() now accepts capital unicode string

:Detailed Notes:
Hex. characters include 1-9, a-f and A-F. But cjson does not include
A-F. That's why it json_tokener_parse() returns error on \u002F

:Testing Performed:
Checks whether json_tokener_parse() succeeded in strings "\u002F"

:QA Notes:

:Issues Addressed:
[ANG-6517] json_tokener_parse() returns error for unicode strings

Open-webOS-DCO-1.0-Signed-off-by: Junku Park <junku.park@lge.com>

Change-Id: Ibb1ceae421025b7b09cf18b84593f2dd2692b082
Reviewed-on: https://g2g.palm.com/5560
Reviewed-by: DCO Verification
Reviewed-by: Junku Park <junku.park@lge.com>
Tested-by: Junku Park <junku.park@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Failed to load latest commit information.
.gitignore
AUTHORS
COPYING
ChangeLog
Doxyfile
Makefile.am
README.md
arraylist.c
arraylist.h
autogen.sh
bits.h
cjson.pc.in
configure.in Release cjson 1.8.0 to the public Apr 26, 2012
debug.c
debug.h
json.h
json_object.c
json_object.h
json_object_iterator.c
json_object_iterator.h
json_object_private.h
json_tokener.c
json_tokener.h
json_util.c
json_util.h
linkhash.c
linkhash.h
printbuf.c
printbuf.h
test1.c
test2.c Release cjson 1.8.0 to the public Apr 26, 2012
test3.c Release cjson 1.8.0 to the public Apr 26, 2012
test3orig.c
test5.c Release cjson 1.8.0 to the public Apr 26, 2012

README.md

cjson

This repository contains the edition of the open-source json-c library used by webOS.

How to Build on Linux

Dependencies

Below are the tools and libraries (and their minimum versions) required to build cjson:

  • autoconf 2.61
  • automake 1.9.3
  • gcc 4.3
  • libtool 1.5.24
  • make (any version)

Building

Once you have downloaded the source, execute the following to build it:

$ sh autogen.sh
$ ./configure --disable-static
$ make
$ sudo make install

The header files will be installed under

/usr/local/include/cjson

and the libraries and the pkg-config file under

/usr/local/lib

You can install it elsewhere by supplying the --prefix option when invoking configure. For example:

$ ./configure --disable-static --prefix=$HOME/projects/openwebos
$ make
$ sudo make install

will install the header files under

$HOME/projects/openwebos/include/cjson

and the libraries and the pkg-config file under

$HOME/projects/openwebos/lib

directory.

To undo what make install did, run:

$ sudo make uninstall

Generating documentation

The tools required to generate the documentation are:

  • doxygen 1.6.3
  • graphviz 2.20.2

Once you have run configure, execute the following to generate the documentation:

$ make doc

To view the generated HTML documentation, point your browser to:

doc/html/index.html

Testing

To build the test programs, run:

$ make check

Linking against libcjson

If your system has pkg-config then you can just add this to your makefile:

CFLAGS += $(shell pkg-config --cflags cjson) LDFLAGS += $(shell pkg-config --libs cjson)

Copyright and License Information

See the file COPYING.

Something went wrong with that request. Please try again.