Cameron Armstrong (Nightfox)
d31d635af1
Clean up CMakeLists.txt and remove Amiga specific locale.h guard
1 year ago
Federico Francescon
b1fb1508ee
Added basic tests for `json_object_get_int`, `json_object_get_int64`, `json_object_get_uint64`
2 years ago
Alexandru Ardelean
8abeebc9b2
json_pointer: allow the feature to be disabled
Some users may not want to included it in their build/system. So allow a
cmake symbol to disable it.
A user can do 'cmake -DDISABLE_JSON_POINTER=ON <json_c_root_dir>' and
disable the json_pointer functionality. That saves about 17 KB (on an
x86_64) machine. This may be useful on smaller embedded systems; even
though the saving would be fewer kilobytes.
One thing that also needs to change a bit, is that the 'json.h' be
autogenerated via cmake, in order to conditionally include that
"json_pointer.h" file.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
4 years ago
Björn Esser
61e2bae511
doc: Move Doxyfile into doc subdir
5 years ago
Eric Haszlakiewicz
199c52e2db
Ignore the bench/work and bench/data directories.
5 years ago
Björn Esser
73a2ed115a
Remove multiple trailing newlines at EOF.
5 years ago
Björn Esser
fd0ae5aba6
gitignore: Add build folder.
5 years ago
Eric Haszlakiewicz
b64bdfe381
Remove autoconf files from .gitignore.
5 years ago
andy5995
c3e11d6812
.gitignore:add build directory
6 years ago
Eric Haszlakiewicz
4dd92180c6
Merge branch 'json_deep_copy' of https://github.com/commodo/json-c into commodo-json_deep_copy
7 years ago
Eric Haszlakiewicz
3628f16dd6
Rename json_object_add_int() to json_object_int_inc() and eliminate the "int64" variant since we store 64-bit values internally anyway.
7 years ago
Alexandru Ardelean
1eab22f0da
tests: add test_deep_copy test
Seems to perform better than outputting to string
and re-parsing it.
BENCHMARK - 1000000 iterations of 'dst2 = json_tokener_parse(json_object_get_string(src2))' took 20 seconds
BENCHMARK - 1000000 iterations of 'dst2 = json_tokener_parse(json_object_get_string(src2))' took 7 seconds
It should make a difference on embedded systems.
The test was performed on a i5 desktop CPU [~3.5 years of age].
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Brent Cook
6727b46454
ignore more autoconf goo
7 years ago
Eric Haszlakiewicz
5e33dabda1
Issue #308 : improve the build instructions in README.md to include the exact commands to run for installing prerequisites, as mentioned earlier on Issue #308 .
8 years ago
Alexandru Ardelean
4fb2eefac2
build,cmake: rename libjson-c-static.a to libjson-c.a
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Alexandru Ardelean
f10a5ae4d7
.gitignore: add cmake generated files
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years ago
Eric Haszlakiewicz
177c401e02
Ignore tests/test_float
8 years ago
Alexandru Ardelean
ee7fc26de1
tests: add test_json_pointer test
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
9 years ago
Eric Haszlakiewicz
ecdc14f535
Add a json_c_visit() function to provide a way to iterate over a tree of json-c objects.
9 years ago
Stoian Ivanov
9a313f767f
gitignore test; add double value set checks in test
9 years ago
Nicola Spanti (RyDroid)
ab1d761865
Improving .gitignore
9 years ago
Eric Haszlakiewicz
29ef73f21d
Issue #189 : Eliminate use of MC_ERROR from json_util.c, and add a json_util_get_last_err() function to retrieve the error for those callers that care about it.
Add tests and descriptions for the functions in json_util.c
9 years ago
Matthias Schiffer
c2b004ba0e
Make default double serializer ignore userdata again
The user might want to use the userdata for something different, so the
serializer should ignore it by default.
Explicitly setting the serializer to json_object_double_to_json_string will
still make it interpret the userdata as a format string.
9 years ago
Helmut Schaa
dec5fcd50b
Add some basic tests for verifying json_object_equal behavior
Do some basic checks on ints, doubles, strings, arrays and "complex" objects.
9 years ago
Eric Haszlakiewicz
882b7d95cc
Issue #137 : remove config.h.in from change control.
9 years ago
James Myatt
9d3d8d6fc0
Add x64 build configurations
10 years ago
Eric Haszlakiewicz
e2bbb5664c
Rename the "test_case" test to "test_charcase" to make it slightly less confusing.
11 years ago
Eric Haszlakiewicz
295bea21d0
Ignore and cleanup a few more files that automake creates.
11 years ago
Eric Haszlakiewicz
b83e0f1182
Ignore the test-driver script that is now created, and the script for the test_locale test.
12 years ago
Eric Haszlakiewicz
60e4990d1d
The updated test driver creates .log and .trs files; ignore them.
12 years ago
Alexander Klauer
20ef1bd980
Remove and ignore autogenerated installation instructions
12 years ago
Alexander Klauer
8f58f09c69
Ignore editor swap files
12 years ago
Alexander Klauer
54d551c810
Ignore doc dir for now
12 years ago
Alexander Klauer
e176965c1c
Ignore valgrind output files
12 years ago
Eric Haszlakiewicz
38f421a2e7
Add a json_set_serializer() function to allow the string output of a json_object to be customized.
13 years ago
Eric Haszlakiewicz
d305cae12c
Ignore the tests/testReplaceExisting binary.
13 years ago
Eric Haszlakiewicz
1f9d199522
Re-add the "json" pkg-config file as a compatibility shim.
Also rename the json-c-uninstalled.pc file.
13 years ago
Eric Haszlakiewicz
c7a21203de
Ignore a couple more generated files.
13 years ago
Eric Haszlakiewicz
c2d3ccf3af
Merge branch 'rename_library' of https://github.com/kdopen/json-c into kdopen-rename_library
Conflicts:
.gitignore
Makefile.am
configure.in
printbuf.c
test1.c
test1.expected
13 years ago
Eric Haszlakiewicz
31faa49bd8
Ignore the new test1Formatted and test2Formatted executables.
13 years ago
Eric Haszlakiewicz
37cfe6bc4c
Update the list of files to ignore.
13 years ago
Keith Derrick
65f649b7ba
Ignoring additional build products
13 years ago
Eric Haszlakiewicz
30c6c4a1be
Split the json_tokener_parse tests off from test1 into their own test and add several more cases to check various incremental parsing situations.
13 years ago
Eric Haszlakiewicz
d7db7e81a5
Ignore several more files, include .o's, .lo's, etc...
13 years ago
Eric Haszlakiewicz
c5c623a546
Split the json_tokener_parse tests off from test1 into their own test and add several more cases to check various incremental parsing situations.
13 years ago
Eric Haszlakiewicz
d3c37b82a6
Ignore several more files, include .o's, .lo's, etc...
13 years ago
John Arbash Meinel
6a231e4b41
Some updates to make the code compatible with VC 9 (2008)
VC 9 doesn't support late variable declarations, and doesn't have inttypes
so we need some direct definitions of a couple of more types.
13 years ago
Jehiah Czebotar
5644272f03
set svn:ignore and .gitignore to skip intermediate build files
git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@61 327403b1-1117-474d-bef2-5cb71233fd97
15 years ago