Permalink
Browse files

replace jsoncpp with yajl (thanks topfs2)

* topfs2/remove_jsoncpp: (21 commits)
  Fix. Added explicit typecast to platform int to quench warnings for variant use in jsonrpc
  [win32] replace jsoncpp with yajl
  Removed jsoncpp
  Added pragma and license to IClient.h
  Removed the dependency of jsoncpp in CVariant
  Switched to use CVariant instead of jsoncpp values in JSON-RPC
  Added yajl writer for Variant
  Added yajl parser for Variant
  Added c_str and have size of variant work with strings
  Added check for libyajl to configure
  Added CVariant::type which returns the type of the current variant (easier than multiple isFoo queries)
  Switched Variant to use double internally, still accepts floats
  Added swap method to CVariant
  Moved to use explicit type in CVariant instead of isFoo
  Added operator== to CVariant
  Added array and map iterators to CVariant
  Added CVariant constructor which takes a string pointer and length
  Added append to CVariant
  Added isMember to CVariant
  Removed debug in CVariant
  ...

Conflicts:
	Makefile.in
	configure.in
	project/VS2010Express/XBMC.vcxproj
	xbmc/interfaces/json-rpc/AudioLibrary.cpp
	xbmc/interfaces/json-rpc/FileItemHandler.cpp
	xbmc/interfaces/json-rpc/FileItemHandler.h
	xbmc/interfaces/json-rpc/VideoLibrary.cpp
  • Loading branch information...
2 parents 648af1e + fee62a4 commit 3565ad579e9b80f4be57db901d3fe44d9bfac87d @Montellese Montellese committed Jun 3, 2011
Showing with 1,237 additions and 14,920 deletions.
  1. +1 −6 Makefile.in
  2. +1 −1 configure.in
  3. +0 −1 lib/jsoncpp/AUTHORS
  4. +0 −132 lib/jsoncpp/README.txt
  5. +0 −248 lib/jsoncpp/SConstruct
  6. +0 −1,534 lib/jsoncpp/doc/doxyfile.in
  7. +0 −23 lib/jsoncpp/doc/footer.html
  8. +0 −24 lib/jsoncpp/doc/header.html
  9. +0 −126 lib/jsoncpp/doc/jsoncpp.dox
  10. +0 −1 lib/jsoncpp/doc/readme.txt
  11. +0 −45 lib/jsoncpp/doc/roadmap.dox
  12. +0 −24 lib/jsoncpp/include/json/autolink.h
  13. +0 −82 lib/jsoncpp/include/json/config.h
  14. +0 −47 lib/jsoncpp/include/json/features.h
  15. +0 −42 lib/jsoncpp/include/json/forwards.h
  16. +0 −15 lib/jsoncpp/include/json/json.h
  17. +0 −201 lib/jsoncpp/include/json/reader.h
  18. +0 −1,101 lib/jsoncpp/include/json/value.h
  19. +0 −183 lib/jsoncpp/include/json/writer.h
  20. +0 −46 lib/jsoncpp/makefiles/vs71/jsoncpp.sln
  21. +0 −119 lib/jsoncpp/makefiles/vs71/jsontest.vcproj
  22. +0 −214 lib/jsoncpp/makefiles/vs71/lib_json.vcproj
  23. +0 −130 lib/jsoncpp/makefiles/vs71/test_lib_json.vcproj
  24. +0 −53 lib/jsoncpp/scons-tools/globtool.py
  25. +0 −179 lib/jsoncpp/scons-tools/srcdist.py
  26. +0 −79 lib/jsoncpp/scons-tools/substinfile.py
  27. +0 −82 lib/jsoncpp/scons-tools/targz.py
  28. +0 −269 lib/jsoncpp/src/jsontestrunner/main.cpp
  29. +0 −9 lib/jsoncpp/src/jsontestrunner/sconscript
  30. +0 −9 lib/jsoncpp/src/lib_json/Makefile.in
  31. +0 −130 lib/jsoncpp/src/lib_json/json_batchallocator.h
  32. +0 −453 lib/jsoncpp/src/lib_json/json_internalarray.inl
  33. +0 −612 lib/jsoncpp/src/lib_json/json_internalmap.inl
  34. +0 −870 lib/jsoncpp/src/lib_json/json_reader.cpp
  35. +0 −93 lib/jsoncpp/src/lib_json/json_tool.h
  36. +0 −1,840 lib/jsoncpp/src/lib_json/json_value.cpp
  37. +0 −297 lib/jsoncpp/src/lib_json/json_valueiterator.inl
  38. +0 −836 lib/jsoncpp/src/lib_json/json_writer.cpp
  39. +0 −8 lib/jsoncpp/src/lib_json/sconscript
  40. +0 −608 lib/jsoncpp/src/test_lib_json/jsontest.cpp
  41. +0 −259 lib/jsoncpp/src/test_lib_json/jsontest.h
  42. +0 −271 lib/jsoncpp/src/test_lib_json/main.cpp
  43. +0 −10 lib/jsoncpp/src/test_lib_json/sconscript
  44. +0 −10 lib/jsoncpp/test/cleantests.py
  45. +0 −1 lib/jsoncpp/test/data/test_array_01.expected
  46. +0 −1 lib/jsoncpp/test/data/test_array_01.json
  47. +0 −2 lib/jsoncpp/test/data/test_array_02.expected
  48. +0 −1 lib/jsoncpp/test/data/test_array_02.json
  49. +0 −6 lib/jsoncpp/test/data/test_array_03.expected
  50. +0 −1 lib/jsoncpp/test/data/test_array_03.json
  51. +0 −5 lib/jsoncpp/test/data/test_array_04.expected
  52. +0 −1 lib/jsoncpp/test/data/test_array_04.json
  53. +0 −100 lib/jsoncpp/test/data/test_array_05.expected
  54. +0 −1 lib/jsoncpp/test/data/test_array_05.json
  55. +0 −5 lib/jsoncpp/test/data/test_array_06.expected
  56. +0 −4 lib/jsoncpp/test/data/test_array_06.json
  57. +0 −1 lib/jsoncpp/test/data/test_basic_01.expected
  58. +0 −1 lib/jsoncpp/test/data/test_basic_01.json
  59. +0 −1 lib/jsoncpp/test/data/test_basic_02.expected
  60. +0 −1 lib/jsoncpp/test/data/test_basic_02.json
  61. +0 −3 lib/jsoncpp/test/data/test_basic_03.expected
  62. +0 −3 lib/jsoncpp/test/data/test_basic_03.json
  63. +0 −2 lib/jsoncpp/test/data/test_basic_04.expected
  64. +0 −2 lib/jsoncpp/test/data/test_basic_04.json
  65. +0 −2 lib/jsoncpp/test/data/test_basic_05.expected
  66. +0 −2 lib/jsoncpp/test/data/test_basic_05.json
  67. +0 −2 lib/jsoncpp/test/data/test_basic_06.expected
  68. +0 −2 lib/jsoncpp/test/data/test_basic_06.json
  69. +0 −2 lib/jsoncpp/test/data/test_basic_07.expected
  70. +0 −2 lib/jsoncpp/test/data/test_basic_07.json
  71. +0 −2 lib/jsoncpp/test/data/test_basic_08.expected
  72. +0 −3 lib/jsoncpp/test/data/test_basic_08.json
  73. +0 −2 lib/jsoncpp/test/data/test_basic_09.expected
  74. +0 −4 lib/jsoncpp/test/data/test_basic_09.json
  75. +0 −8 lib/jsoncpp/test/data/test_comment_01.expected
  76. +0 −8 lib/jsoncpp/test/data/test_comment_01.json
  77. +0 −20 lib/jsoncpp/test/data/test_complex_01.expected
  78. +0 −17 lib/jsoncpp/test/data/test_complex_01.json
  79. +0 −1 lib/jsoncpp/test/data/test_integer_01.expected
  80. +0 −2 lib/jsoncpp/test/data/test_integer_01.json
  81. +0 −1 lib/jsoncpp/test/data/test_integer_02.expected
  82. +0 −2 lib/jsoncpp/test/data/test_integer_02.json
  83. +0 −1 lib/jsoncpp/test/data/test_integer_03.expected
  84. +0 −2 lib/jsoncpp/test/data/test_integer_03.json
  85. +0 −2 lib/jsoncpp/test/data/test_integer_04.expected
  86. +0 −3 lib/jsoncpp/test/data/test_integer_04.json
  87. +0 −2 lib/jsoncpp/test/data/test_integer_05.expected
  88. +0 −2 lib/jsoncpp/test/data/test_integer_05.json
  89. +0 −1 lib/jsoncpp/test/data/test_integer_06_64bits.expected
  90. +0 −2 lib/jsoncpp/test/data/test_integer_06_64bits.json
  91. +0 −1 lib/jsoncpp/test/data/test_integer_07_64bits.expected
  92. +0 −2 lib/jsoncpp/test/data/test_integer_07_64bits.json
  93. +0 −1 lib/jsoncpp/test/data/test_integer_08_64bits.expected
  94. +0 −2 lib/jsoncpp/test/data/test_integer_08_64bits.json
  95. +0 −2,122 lib/jsoncpp/test/data/test_large_01.expected
  96. +0 −2 lib/jsoncpp/test/data/test_large_01.json
  97. +0 −1 lib/jsoncpp/test/data/test_object_01.expected
  98. +0 −1 lib/jsoncpp/test/data/test_object_01.json
  99. +0 −2 lib/jsoncpp/test/data/test_object_02.expected
  100. +0 −1 lib/jsoncpp/test/data/test_object_02.json
  101. +0 −4 lib/jsoncpp/test/data/test_object_03.expected
  102. +0 −5 lib/jsoncpp/test/data/test_object_03.json
  103. +0 −2 lib/jsoncpp/test/data/test_object_04.expected
  104. +0 −3 lib/jsoncpp/test/data/test_object_04.json
  105. +0 −3 lib/jsoncpp/test/data/test_preserve_comment_01.expected
  106. +0 −14 lib/jsoncpp/test/data/test_preserve_comment_01.json
  107. +0 −2 lib/jsoncpp/test/data/test_real_01.expected
  108. +0 −3 lib/jsoncpp/test/data/test_real_01.json
  109. +0 −2 lib/jsoncpp/test/data/test_real_02.expected
  110. +0 −3 lib/jsoncpp/test/data/test_real_02.json
  111. +0 −2 lib/jsoncpp/test/data/test_real_03.expected
  112. +0 −3 lib/jsoncpp/test/data/test_real_03.json
  113. +0 −2 lib/jsoncpp/test/data/test_real_04.expected
  114. +0 −3 lib/jsoncpp/test/data/test_real_04.json
  115. +0 −3 lib/jsoncpp/test/data/test_real_05.expected
  116. +0 −3 lib/jsoncpp/test/data/test_real_05.json
  117. +0 −3 lib/jsoncpp/test/data/test_real_06.expected
  118. +0 −3 lib/jsoncpp/test/data/test_real_06.json
  119. +0 −3 lib/jsoncpp/test/data/test_real_07.expected
  120. +0 −3 lib/jsoncpp/test/data/test_real_07.json
  121. +0 −1 lib/jsoncpp/test/data/test_string_01.expected
  122. +0 −1 lib/jsoncpp/test/data/test_string_01.json
  123. +0 −1 lib/jsoncpp/test/data/test_string_02.expected
  124. +0 −1 lib/jsoncpp/test/data/test_string_02.json
  125. +0 −1 lib/jsoncpp/test/data/test_string_03.expected
  126. +0 −1 lib/jsoncpp/test/data/test_string_03.json
  127. +0 −1 lib/jsoncpp/test/data/test_string_unicode_01.expected
  128. +0 −1 lib/jsoncpp/test/data/test_string_unicode_01.json
  129. +0 −1 lib/jsoncpp/test/data/test_string_unicode_02.expected
  130. +0 −1 lib/jsoncpp/test/data/test_string_unicode_02.json
  131. +0 −1 lib/jsoncpp/test/data/test_string_unicode_03.expected
  132. +0 −1 lib/jsoncpp/test/data/test_string_unicode_03.json
  133. +0 −1 lib/jsoncpp/test/data/test_string_unicode_04.expected
  134. +0 −1 lib/jsoncpp/test/data/test_string_unicode_04.json
  135. +0 −2 lib/jsoncpp/test/data/test_string_unicode_05.expected
  136. +0 −1 lib/jsoncpp/test/data/test_string_unicode_05.json
  137. +0 −11 lib/jsoncpp/test/generate_expected.py
  138. +0 −1 lib/jsoncpp/test/jsonchecker/fail1.json
  139. +0 −1 lib/jsoncpp/test/jsonchecker/fail10.json
  140. +0 −1 lib/jsoncpp/test/jsonchecker/fail11.json
  141. +0 −1 lib/jsoncpp/test/jsonchecker/fail12.json
  142. +0 −1 lib/jsoncpp/test/jsonchecker/fail13.json
  143. +0 −1 lib/jsoncpp/test/jsonchecker/fail14.json
  144. +0 −1 lib/jsoncpp/test/jsonchecker/fail15.json
  145. +0 −1 lib/jsoncpp/test/jsonchecker/fail16.json
  146. +0 −1 lib/jsoncpp/test/jsonchecker/fail17.json
  147. +0 −1 lib/jsoncpp/test/jsonchecker/fail18.json
  148. +0 −1 lib/jsoncpp/test/jsonchecker/fail19.json
  149. +0 −1 lib/jsoncpp/test/jsonchecker/fail2.json
  150. +0 −1 lib/jsoncpp/test/jsonchecker/fail20.json
  151. +0 −1 lib/jsoncpp/test/jsonchecker/fail21.json
  152. +0 −1 lib/jsoncpp/test/jsonchecker/fail22.json
  153. +0 −1 lib/jsoncpp/test/jsonchecker/fail23.json
  154. +0 −1 lib/jsoncpp/test/jsonchecker/fail24.json
  155. +0 −1 lib/jsoncpp/test/jsonchecker/fail25.json
  156. +0 −1 lib/jsoncpp/test/jsonchecker/fail26.json
  157. +0 −2 lib/jsoncpp/test/jsonchecker/fail27.json
  158. +0 −2 lib/jsoncpp/test/jsonchecker/fail28.json
  159. +0 −1 lib/jsoncpp/test/jsonchecker/fail29.json
  160. +0 −1 lib/jsoncpp/test/jsonchecker/fail3.json
  161. +0 −1 lib/jsoncpp/test/jsonchecker/fail30.json
  162. +0 −1 lib/jsoncpp/test/jsonchecker/fail31.json
  163. +0 −1 lib/jsoncpp/test/jsonchecker/fail32.json
  164. +0 −1 lib/jsoncpp/test/jsonchecker/fail33.json
  165. +0 −1 lib/jsoncpp/test/jsonchecker/fail4.json
  166. +0 −1 lib/jsoncpp/test/jsonchecker/fail5.json
  167. +0 −1 lib/jsoncpp/test/jsonchecker/fail6.json
  168. +0 −1 lib/jsoncpp/test/jsonchecker/fail7.json
  169. +0 −1 lib/jsoncpp/test/jsonchecker/fail8.json
  170. +0 −1 lib/jsoncpp/test/jsonchecker/fail9.json
  171. +0 −58 lib/jsoncpp/test/jsonchecker/pass1.json
  172. +0 −1 lib/jsoncpp/test/jsonchecker/pass2.json
  173. +0 −6 lib/jsoncpp/test/jsonchecker/pass3.json
  174. +0 −3 lib/jsoncpp/test/jsonchecker/readme.txt
  175. +0 −64 lib/jsoncpp/test/pyjsontestrunner.py
  176. +0 −134 lib/jsoncpp/test/runjsontests.py
  177. +0 −73 lib/jsoncpp/test/rununittests.py
  178. +13 −0 project/BuildDependencies/scripts/yajl_d.bat
  179. +2 −0 project/BuildDependencies/scripts/yajl_d.txt
  180. +12 −11 project/VS2010Express/XBMC.vcxproj
  181. +12 −12 project/VS2010Express/XBMC.vcxproj.filters
  182. +18 −19 xbmc/interfaces/json-rpc/AVPlayerOperations.cpp
  183. +16 −16 xbmc/interfaces/json-rpc/AVPlayerOperations.h
  184. +16 −17 xbmc/interfaces/json-rpc/AVPlaylistOperations.cpp
  185. +10 −10 xbmc/interfaces/json-rpc/AVPlaylistOperations.h
  186. +26 −27 xbmc/interfaces/json-rpc/AudioLibrary.cpp
  187. +8 −8 xbmc/interfaces/json-rpc/AudioLibrary.h
  188. +12 −16 xbmc/interfaces/json-rpc/FileItemHandler.cpp
  189. +5 −5 xbmc/interfaces/json-rpc/FileItemHandler.h
  190. +16 −17 xbmc/interfaces/json-rpc/FileOperations.cpp
  191. +4 −4 xbmc/interfaces/json-rpc/FileOperations.h
  192. +22 −0 xbmc/interfaces/json-rpc/IClient.h
  193. +2 −5 xbmc/interfaces/json-rpc/ITransportLayer.h
  194. +7 −8 xbmc/interfaces/json-rpc/InputOperations.cpp
  195. +7 −7 xbmc/interfaces/json-rpc/InputOperations.h
  196. +39 −54 xbmc/interfaces/json-rpc/JSONRPC.cpp
  197. +10 −11 xbmc/interfaces/json-rpc/JSONRPC.h
  198. +74 −86 xbmc/interfaces/json-rpc/JSONServiceDescription.cpp
  199. +14 −15 xbmc/interfaces/json-rpc/JSONServiceDescription.h
  200. +37 −99 xbmc/interfaces/json-rpc/JSONUtils.h
  201. +14 −16 xbmc/interfaces/json-rpc/PicturePlayerOperations.cpp
  202. +13 −13 xbmc/interfaces/json-rpc/PicturePlayerOperations.h
  203. +1 −2 xbmc/interfaces/json-rpc/PlayerOperations.cpp
  204. +1 −1 xbmc/interfaces/json-rpc/PlayerOperations.h
  205. +14 −15 xbmc/interfaces/json-rpc/PlaylistOperations.cpp
  206. +11 −11 xbmc/interfaces/json-rpc/PlaylistOperations.h
  207. +7 −8 xbmc/interfaces/json-rpc/SystemOperations.cpp
  208. +6 −6 xbmc/interfaces/json-rpc/SystemOperations.h
  209. +40 −46 xbmc/interfaces/json-rpc/VideoLibrary.cpp
  210. +17 −17 xbmc/interfaces/json-rpc/VideoLibrary.h
  211. +11 −12 xbmc/interfaces/json-rpc/XBMCOperations.cpp
  212. +7 −7 xbmc/interfaces/json-rpc/XBMCOperations.h
  213. +1 −1 xbmc/interfaces/python/xbmcmodule/pyjsonrpc.h
  214. +1 −2 xbmc/network/TCPServer.cpp
  215. +1 −2 xbmc/network/TCPServer.h
  216. +3 −2 xbmc/network/WebServer.cpp
  217. +1 −1 xbmc/network/WebServer.h
  218. +214 −0 xbmc/utils/JSONVariantParser.cpp
  219. +87 −0 xbmc/utils/JSONVariantParser.h
  220. +100 −0 xbmc/utils/JSONVariantWriter.cpp
  221. +32 −0 xbmc/utils/JSONVariantWriter.h
  222. +2 −0 xbmc/utils/Makefile
  223. +225 −125 xbmc/utils/Variant.cpp
  224. +44 −19 xbmc/utils/Variant.h
View
@@ -124,8 +124,7 @@ LIB_DIRS=\
lib/libid3tag \
lib/libapetag \
lib/cpluff \
- lib/xbmc-dll-symbols \
- lib/jsoncpp/src/lib_json
+ lib/xbmc-dll-symbols
SS_DIRS=\
xbmc/screensavers/rsxs-0.9/xbmc
@@ -329,8 +328,6 @@ lib/libUPnP/libupnp.a: force
$(MAKE) -C lib/libUPnP
lib/libXDAAP/libxdaap.a: force
$(MAKE) -C lib/libXDAAP
-lib/jsoncpp/src/lib_json/libjsoncpp.a: force
- $(MAKE) -C lib/jsoncpp/src/lib_json
xbmc/interfaces/http-api/http-api.a: force
$(MAKE) -C xbmc/interfaces/http-api
xbmc/interfaces/json-rpc/json-rpc.a: force
@@ -439,7 +436,6 @@ xcode_depends: \
lib/libapetag/.libs/libapetag.a \
lib/libRTV/librtv.a \
lib/libXDAAP/libxdaap.a \
- lib/jsoncpp/src/lib_json/libjsoncpp.a \
lib/SlingboxLib/SlingboxLib.a
# platform independend objects
@@ -491,7 +487,6 @@ OBJSXBMC= \
xbmc/interfaces/interfaces.a \
xbmc/cdrip/cdrip.a \
xbmc/interfaces/json-rpc/json-rpc.a \
- lib/jsoncpp/src/lib_json/libjsoncpp.a \
xbmc/interfaces/http-api/http-api.a \
xbmc/dbwrappers/dbwrappers.a \
lib/libsquish/libsquish.a \
View
@@ -589,6 +589,7 @@ AC_CHECK_LIB([mysqlclient], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([ssh], [sftp_tell64],, AC_MSG_RESULT([Could not find suitable version of libssh]))
AC_CHECK_LIB([smbclient], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([bluetooth], [hci_devid],, AC_MSG_RESULT([Could not find suitable version of libbluetooth]))
+AC_CHECK_LIB([yajl], [main],, AC_MSG_ERROR($missing_library))
PKG_CHECK_MODULES([FONTCONFIG], [fontconfig],
[INCLUDES="$INCLUDES $FONTCONFIG_CFLAGS"; LIBS="$LIBS $FONTCONFIG_LIBS"],
AC_MSG_ERROR($missing_library))
@@ -1387,7 +1388,6 @@ OUTPUT_FILES="Makefile \
lib/libXDAAP/Makefile \
lib/cmyth/Makefile \
lib/libhdhomerun/Makefile \
- lib/jsoncpp/src/lib_json/Makefile \
lib/libsquish/Makefile \
lib/libid3tag/Makefile \
lib/cximage-6.0/Makefile \
View
@@ -1 +0,0 @@
-Baptiste Lepilleur <blep@users.sourceforge.net>
View
@@ -1,132 +0,0 @@
-* Introduction:
- =============
-
-JSON (JavaScript Object Notation) is a lightweight data-interchange format.
-It can represent integer, real number, string, an ordered sequence of
-value, and a collection of name/value pairs.
-
-JsonCpp is a simple API to manipulate JSON value, handle serialization
-and unserialization to string.
-
-It can also preserve existing comment in unserialization/serialization steps,
-making it a convenient format to store user input files.
-
-Unserialization parsing is user friendly and provides precise error reports.
-
-
-* Building/Testing:
- =================
-
-JsonCpp uses Scons (http://www.scons.org) as a build system. Scons requires
-python to be installed (http://www.python.org).
-
-You download scons-local distribution from the following url:
-http://sourceforge.net/project/showfiles.php?group_id=30337&package_id=67375
-
-Unzip it in the directory where you found this README file. scons.py Should be
-at the same level as README.
-
-python scons.py platform=PLTFRM [TARGET]
-where PLTFRM may be one of:
- suncc Sun C++ (Solaris)
- vacpp Visual Age C++ (AIX)
- mingw
- msvc6 Microsoft Visual Studio 6 service pack 5-6
- msvc70 Microsoft Visual Studio 2002
- msvc71 Microsoft Visual Studio 2003
- msvc80 Microsoft Visual Studio 2005
- msvc90 Microsoft Visual Studio 2008
- linux-gcc Gnu C++ (linux, also reported to work for Mac OS X)
-
-Notes: if you are building with Microsoft Visual Studio 2008, you need to
-setup the environment by running vcvars32.bat (e.g. MSVC 2008 command prompt)
-before running scons.
-
-Adding platform is fairly simple. You need to change the Sconstruct file
-to do so.
-
-and TARGET may be:
- check: build library and run unit tests.
-
-
-* Running the test manually:
- ==========================
-
-cd test
-# This will run the Reader/Writer tests
-python runjsontests.py "path to jsontest.exe"
-
-# This will run the Reader/Writer tests, using JSONChecker test suite
-# (http://www.json.org/JSON_checker/).
-# Notes: not all tests pass: JsonCpp is too lenient (for example,
-# it allows an integer to start with '0'). The goal is to improve
-# strict mode parsing to get all tests to pass.
-python runjsontests.py --with-json-checker "path to jsontest.exe"
-
-# This will run the unit tests (mostly Value)
-python rununittests.py "path to test_lib_json.exe"
-
-You can run the tests using valgrind:
-python rununittests.py --valgrind "path to test_lib_json.exe"
-
-
-* Building the documentation:
- ===========================
-
-Run the python script doxybuild.py from the top directory:
-
-python doxybuild.py --open --with-dot
-
-See doxybuild.py --help for options.
-
-Notes that the documentation is also available for download as a tarball.
-The documentation of the latest release is available online at:
-http://jsoncpp.sourceforge.net/
-
-
-* Adding a reader/writer test:
- ============================
-
-To add a test, you need to create two files in test/data:
-- a TESTNAME.json file, that contains the input document in JSON format.
-- a TESTNAME.expected file, that contains a flatened representation of
- the input document.
-
-TESTNAME.expected file format:
-- each line represents a JSON element of the element tree represented
- by the input document.
-- each line has two parts: the path to access the element separated from
- the element value by '='. Array and object values are always empty
- (e.g. represented by either [] or {}).
-- element path: '.' represented the root element, and is used to separate
- object members. [N] is used to specify the value of an array element
- at index N.
-See test_complex_01.json and test_complex_01.expected to better understand
-element path.
-
-
-* Understanding reader/writer test output:
- ========================================
-
-When a test is run, output files are generated aside the input test files.
-Below is a short description of the content of each file:
-
-- test_complex_01.json: input JSON document
-- test_complex_01.expected: flattened JSON element tree used to check if
- parsing was corrected.
-
-- test_complex_01.actual: flattened JSON element tree produced by
- jsontest.exe from reading test_complex_01.json
-- test_complex_01.rewrite: JSON document written by jsontest.exe using the
- Json::Value parsed from test_complex_01.json and serialized using
- Json::StyledWritter.
-- test_complex_01.actual-rewrite: flattened JSON element tree produced by
- jsontest.exe from reading test_complex_01.rewrite.
-test_complex_01.process-output: jsontest.exe output, typically useful to
- understand parsing error.
-
-* License
- =======
-
-See file LICENSE for details. Basically JsonCpp is licensed under
-MIT license, or public domain if desired and recognized in your jurisdiction.
Oops, something went wrong.

0 comments on commit 3565ad5

Please sign in to comment.