Add a json_c_visit() function to provide a way to iterate over a tree of json-c objects.

This commit is contained in:
Eric Haszlakiewicz
2016-10-29 15:01:20 -04:00
parent 7e12b9f47c
commit ecdc14f535
8 changed files with 410 additions and 4 deletions

12
tests/test_visit.test Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
# Common definitions
if test -z "$srcdir"; then
srcdir="${0%/*}"
test "$srcdir" = "$0" && srcdir=.
test -z "$srcdir" && srcdir=.
fi
. "$srcdir/test-defs.sh"
run_output_test test_visit
exit $?