519 Commits

Author SHA1 Message Date
Baptiste Lepilleur
e3cc0f004b Untabified some sources 2011-05-02 18:41:01 +00:00
Baptiste Lepilleur
fb17080142 - Added unit tests for comparison operators (except compare())
- Fixed Value::operator <= implementation (had the semantic of operator >=). Found when addigin unit tests for comparison operators.
2011-05-02 16:53:10 +00:00
Baptiste Lepilleur
e0e1fd37cd - Bug #3200841: removed "warning C4127: conditional expression is constant" concerning infinite loop by replacing while (true) with for (;;). Added new JSON_FAIL macro. Commented unused parameters. 2011-05-02 16:51:48 +00:00
Baptiste Lepilleur
d0a9f3d98d Bug #3200841: removed "warning C4127: conditional expression is constant" concerning infinite loop by replacing while (true) with for (;;). 2011-05-02 09:54:49 +00:00
Baptiste Lepilleur
7953a801c1 Released 0.6.0-rc1 2011-05-02 07:30:45 +00:00
Baptiste Lepilleur
df4de558c3 Need more tests on unicode 2011-05-02 07:06:33 +00:00
Baptiste Lepilleur
62d7bc75db Added support for amalgated source and header generation (a la sqlite). Refer to README.txt section "Generating amalgated source and header" for detail.
The amalgated sources are generated by concatenating JsonCpp source in the correct order and defining macro JSON_IS_AMALGATED to prevent inclusion of other headers. Sources and header has been modified to prevent any inclusion when this macro is defined.

The script amalgate.py handle the generation.
2011-05-02 07:06:07 +00:00
Baptiste Lepilleur
224a1aee72 Release 0.6.0-rc1 2011-05-01 22:11:05 +00:00
Baptiste Lepilleur
40388494bd Release test-0.6.0 2011-05-01 20:50:44 +00:00
Baptiste Lepilleur
bafb43c203 Release test-0.6.0 2011-05-01 20:36:55 +00:00
Baptiste Lepilleur
64e40aafe5 Added support for amalgated source and header generation (a la sqlite). Refer to README.txt section "Generating amalgated source and header" for detail.
The amalgated sources are generated by concatenating JsonCpp source in the correct order and defining macro JSON_IS_AMALGATED to prevent inclusion of other headers. Sources and header has been modified to prevent any inclusion when this macro is defined.

The script amalgate.py handle the generation.
2011-05-01 20:13:40 +00:00
Baptiste Lepilleur
91923f2cbc Added project URL. 2011-05-01 18:33:46 +00:00
Baptiste Lepilleur
13698b5835 Added recommended include path. 2011-05-01 17:24:16 +00:00
Baptiste Lepilleur
5349225f43 Added known bug reference for experimental internal map. 2011-05-01 16:42:18 +00:00
Baptiste Lepilleur
b2e8cccbc6 Renamed Reader::getFormatedErrorMessages() to getFormattedErrorMessages. Bug #3023708 (Formatted has 2 't'). The old member function is deprecated but still present for backward compatibility. 2011-05-01 16:27:55 +00:00
Baptiste Lepilleur
99043b32b5 Fixed bug #3139678: stack buffer overflow when parsing a double with a length of 32 characters. 2011-05-01 15:47:38 +00:00
Baptiste Lepilleur
9c98f2277b Fixed bug #3139677: JSON [1 2 3] was incorrectly parsed as [1, 3]. Error is now correctly detected.
Modified runjsontests.py to allow test that expect failure in jsoncpp test suite.
2011-05-01 15:40:47 +00:00
Baptiste Lepilleur
565a1f3d39 Fixed latest readme.txt url. 2011-05-01 15:09:16 +00:00
Baptiste Lepilleur
61324b5f77 Fixed url for scons 1.2 download. Clarify manual test run executable path. 2011-05-01 15:06:40 +00:00
Baptiste Lepilleur
842e9ac54b Major rework of 64 integer support: 64 bits integer are only returned when explicitly request via Json::Value::asInt64(), unlike previous implementation where Json::Value::asInt() returned a 64 bits integer.
This eases porting portable code and does not break compatibility with the previous release.

Json::Value::asLargestInt() has also be added to ease writing portable code independent of 64 bits integer support. It is typically used to implement writers.
2010-12-27 17:45:23 +00:00
Baptiste Lepilleur
5c5628aec2 Fixed some documentation issues pointed out by Daniel. 2010-12-24 19:58:23 +00:00
Baptiste Lepilleur
b96aed0f3e Added float Json::Value::asFloat() to obtain a floating point value as a float (avoid lost of precision warning caused by used of asDouble() to initialize a float). 2010-12-24 19:30:06 +00:00
Baptiste Lepilleur
fa130ef871 - Array index can be passed as int to operator[], allowing use of literal:
Json::Value array;
  array.append( 1234 );
  int value = array[0].asInt();  // did not compile previously
2010-12-24 12:47:14 +00:00
Baptiste Lepilleur
e6046e589e updated license with clearer information 2010-04-27 16:38:30 +00:00
Baptiste Lepilleur
402c13eb3d - added unit test and roadmap for handling of escape sequence "\/" 2010-04-27 16:37:50 +00:00
Baptiste Lepilleur
7469f1d014 JsonCpp is now licensed under MIT license, or public domain if desired and recognized in your jurisdiction. 2010-04-20 21:35:19 +00:00
Baptiste Lepilleur
201fb2cf0d - Moved definition of Json::Int and Json::UInt to config.h which compiler detection logic to define them to 64 bits integer if JSON_NO_INT64 is not defined.
- Added Json::ArrayIndex as an unsigned int to forwards.h
- Modified Json::Value to consistently use Json::ArrayIndex.
- Added int/unsigned int constructor overload to Json::Value to avoid ambiguous constructor call.
- Modified jsontestrunner/main.cpp to use Json::valueToString for Value::asInt() conversion to string.
- Modified Json::Reader to only overflow to double when the number is too large (previous code relied on the fact that an int fitted in a double without precision loss).
- Generalized uintToString() helpers and buffer size to automatically adapt to the precision of Json::UInt.
- Added specific conversion logic for UInt to double conversion on Microsoft Visual Studio 6 which only support __int64 to double conversion (unsigned __int64 conversion is not supported)
- Added test for 64 bits parsing/writing. Notes: those will fail when compiled with JSON_NO_INT64 (more dev required to adapt).
2010-04-19 07:37:41 +00:00
Baptiste Lepilleur
377d21e145 - added need for 64 bits integer to roadmap 2010-04-14 13:17:26 +00:00
Baptiste Lepilleur
afd9cef928 Removed experimental ValueAllocator, it caused static initialization/destruction order issues (bug #2934500). The DefaultValueAllocator has been inlined in code. 2010-03-13 13:10:27 +00:00
Baptiste Lepilleur
d38ba2a2cb - extracted some utility functions out-of reader and parser. 2010-03-13 12:24:38 +00:00
Baptiste Lepilleur
130730ffd7 Added NEWS.txt that provides a synopsis of the change since the last version. Integrated NEWS.txt in documentation. 2010-03-13 11:14:49 +00:00
Baptiste Lepilleur
e1b26455e7 - added support for compilation using Microsoft Visual Studio 2008 2010-03-13 10:59:50 +00:00
Baptiste Lepilleur
cd6cb5d0e6 - better execution examples 2010-03-13 07:59:07 +00:00
Baptiste Lepilleur
0a899589c2 - add LD_LIBRARY_PATH to propagated environment variables as it is required for some compiler installations. 2010-03-13 07:55:46 +00:00
Baptiste Lepilleur
a11e47d9ad - fixed project links section name 2010-03-12 10:17:46 +00:00
Baptiste Lepilleur
59ff11281a Released 0.5.0 2010-03-12 07:46:20 +00:00
Baptiste Lepilleur
e6a77410f4 - fixed typos and added "download" section to documentation
- commit version numbers after release
2010-03-11 21:02:26 +00:00
Baptiste Lepilleur
0c5fff142d Removed experimental notification on iterators, and added experimental status for allocator (to be removed) 2010-03-11 20:23:07 +00:00
Baptiste Lepilleur
d89d7961d6 - added --no-web to skip upload to web site
- added automatic upload of source and documentation tarball on frs.sourceforge.net
2010-02-25 08:30:09 +00:00
Baptiste Lepilleur
64ba062076 - doc is now generated in dist/doxygen
- makerelease now decompress the tarball, download and install scons, run scons check on provided platforms, decompress doc tarball and upload the doc on the project web
2010-02-24 23:08:47 +00:00
Baptiste Lepilleur
35bdc07ebd - added source tarball decompression 2010-02-24 08:05:41 +00:00
Baptiste Lepilleur
e94d2f483b - added the following step to make_release: fix EOL in distribution source, generate source tarball.
- devtools/ was made into a python module and common utilities are being moved in this module
2010-02-23 21:00:30 +00:00
Baptiste Lepilleur
7c171ee726 - added svn export
- prepared tool for eol conversion
2010-02-23 08:44:52 +00:00
Baptiste Lepilleur
fcf145ecd4 - changed SVN EOL properties so that HTML file are in Unix format, Visual Studio solution are always in Windows format, and sources are in native format. 2010-02-23 08:23:41 +00:00
Baptiste Lepilleur
1f4847cbd9 - added (incomplete) script makerelease.py to handle svn tagging and tar balls generation 2010-02-23 07:57:38 +00:00
Baptiste Lepilleur
35503e5917 - fixed project name and version 2010-02-22 04:37:31 +00:00
Baptiste Lepilleur
57ee0e3b37 - Documentation generation is no longer handled by SCons. The script doxybuild.py is used to generate the documentation on demand.
- Added file 'version' that contains jsoncpp version number. It is used by both SConstruct and doxybuild.py.
- Updated README.txt with documentation build instruction, and instructions to add a test case.
2010-02-22 04:16:10 +00:00
Baptiste Lepilleur
8d3790d217 - added missing virtual destructor to TestCase. 2010-02-21 14:28:54 +00:00
Baptiste Lepilleur
7c66ac2e0f - added command-line option --with-json-checker to run test from jsonchecker test suite of json.org. 2010-02-21 14:26:08 +00:00
Baptiste Lepilleur
8c2f18cd1d - updated roadmap (utf-8 handling in Reader) 2010-02-21 14:24:52 +00:00
Baptiste Lepilleur
3a1b93be1c - added Int/UInt typedef in Json namespace. Modified Value::Int and Value::UInt to be typedef on those. Modified code to use Json::Int instead of Value::Int.
- added Value constructor taking begin/end pointer to initialize the Value with a non-zero terminated string.
2010-02-21 14:08:17 +00:00
Baptiste Lepilleur
7a866553bb - added a large test that cause(d?) crash with experimental JSON_VALUE_USE_INTERNAL_MAP 2010-02-21 10:44:12 +00:00
Baptiste Lepilleur
89c0092084 renamed jsontestrunner.py to pyjsontestrunner.py to avoid confusion 2010-02-19 05:10:41 +00:00
Baptiste Lepilleur
a894f775bb - fixed failing test 2010-02-19 05:09:54 +00:00
Baptiste Lepilleur
4a5e58c4f4 Integrated part of Patch #2839016, fixing default iterator initialization when using internal map. 2010-01-15 14:56:59 +00:00
Baptiste Lepilleur
2bcfb63362 Added another failing unicode test case 2009-11-26 10:52:18 +00:00
Baptiste Lepilleur
56c0401a90 Fixed compilation with Sun Studio 12 (avoid usage of std::distance) 2009-11-24 17:43:58 +00:00
Baptiste Lepilleur
a1d6c9e66a Fixed iteration bug over null values. 2009-11-23 22:33:30 +00:00
Baptiste Lepilleur
2814f6e95b Added instruction to run unit tests manually. 2009-11-22 13:11:14 +00:00
Baptiste Lepilleur
7dec64f57e Moved jsontestrunner data from test/ to test/data. 2009-11-21 18:20:25 +00:00
Baptiste Lepilleur
45c499d310 - added mini unit testing framework
- added unit tests for Value.isXYZ() and iteration over Value members to compute size
2009-11-21 18:07:09 +00:00
Baptiste Lepilleur
932cfc798b Added support for valgrind memory checks 2009-11-19 20:16:59 +00:00
Baptiste Lepilleur
f73d4b9a6b Fixed compilation issue with vs2005 2009-11-19 19:13:18 +00:00
Baptiste Lepilleur
43e25c3b09 Fixed documentation example. Bounced version number. 2009-11-19 19:03:14 +00:00
Baptiste Lepilleur
2a787ec8e6 Moved Visual Studio projects file under makefiles/vs71 to allow usage of multiple versions on the same source tree. 2009-11-19 13:29:25 +00:00
Baptiste Lepilleur
86ccb76138 - fixed build issue on Solaris (wrong compilation flags for multi-threading)
- fixed build issue on Linux redhat 3: python does not has tarfile module
2009-11-19 13:05:54 +00:00
Baptiste Lepilleur
bf95d0f619 - fixed build issue on AIX. Build both shared and static library is now only activated on Linux. Building static library on other platforms. 2009-11-19 12:19:07 +00:00
Baptiste Lepilleur
4e19f180b8 - fixed build issue with mingw (bug 2834969) 2009-11-19 12:07:58 +00:00
Baptiste Lepilleur
f179a180bd Fixed comment after value in object value signaled by Frederic Surleau. 2009-11-18 22:25:34 +00:00
Baptiste Lepilleur
8868147835 - added Features class that describes allowed extension for Reader, to allow for strict configuration
- added tests from json.org jsonchecker and modified jsontestrunner to use strict parsing mode when executing them
2009-11-18 21:38:54 +00:00
Baptiste Lepilleur
64e07e54ed - fixed SCons build on Windows: only build static library (support static/dynamic at the same time requires significant changes)
- renamed SCons glob tool to globtool to avoid clash with python glob module. This prevented running the tests.
- check target now works with SCons 1.x
2009-11-18 21:27:06 +00:00
Malay Shah
617270bfaa Fixing string index issue when checking for control characters 2009-11-18 17:40:22 +00:00
Baptiste Lepilleur
5d0ed235c6 Fixed default constructor initialization. 2009-11-18 17:12:24 +00:00
Baptiste Lepilleur
eda47b61b5 Fixed bug introduced by utf-8 patch with fix provided by Henry Ludemann. All unit tests are now passing. 2009-11-18 17:01:09 +00:00
Baptiste Lepilleur
b0ab79bc5b Added patch for mingw from Sebastien Vincent 2009-11-15 22:49:54 +00:00
Malay Shah
ee4b4dab54 Implementing support for reading and writing Unicode escape sequences. 2009-11-13 04:21:14 +00:00
Christopher Dunn
060c45a38d Patch from Sebastien Vincent 2009-05-24 22:22:08 +00:00
Christopher Dunn
8f5ddcfa8d Added cstring for memcpy(), as suggested by sebastien.vincent@turnserver.org . This allows gcc-4 to compile. Removed doxygen from SConstruct, since it is now broken; I have been unable to get it to work with either scons 0.97 or scons 2.1; hopefully someone else can get that working again. 2009-05-11 20:04:10 +00:00
Baptiste Lepilleur
230b1f675f - Added basic string test (all char in ASCII range 33-126) and a large string test. 2008-09-26 07:15:11 +00:00
Christopher Dunn
2083c9e3bf Forgot to add # to %g modifier for sprintf in valueToString for floats. Otherwise no decimal point appears when only zeroes would follow, which changes the type to integer. 2008-01-24 20:21:11 +00:00
Christopher Dunn
ed971e180e Changed valueToString for floats so that zeroes after a decimal are truncated -- saves file size esp. for StyledStreamWriter which uses tabs instead of spaces. 2008-01-24 20:09:48 +00:00
Baptiste Lepilleur
32927b0b22 Sketched out some idea to make the build system more reusable across projects. 2008-01-21 08:37:06 +00:00
Baptiste Lepilleur
e1aad35ae5 Fixed compilation issue on windows (avoid using cstring and use string.h instead). 2008-01-20 16:55:26 +00:00
Baptiste Lepilleur
f66d370741 - rewrote doxygen documentation generation integration with Scons (still need some clean-up): list of sources is explicitly passed to a doxyfile builder which is used as input of a doxygen builder. Hence, the doxyfile depends on all the sources.
- documentation is now correctly generated once when source are changed on the first scons run.
2008-01-20 16:49:53 +00:00
Baptiste Lepilleur
4882d0a595 Added rought roadmap. 2008-01-19 12:12:35 +00:00
Christopher Dunn
452ccb3c70 Unneeded comment. 2007-06-14 22:07:15 +00:00
Christopher Dunn
a3992389bb This file is auto-generated, even if it already exists. That is causing scons dependency problems, but the right answer is not to add the file, apparently. 2007-06-14 22:04:54 +00:00
Christopher Dunn
de10f45285 added comment -- I always have to run twice to build docs because the doxyfile gets updated and causes scons to get confused. I do not know how to fix this, but I simply run 'scons doc/doxyfile' first. 2007-06-14 22:03:11 +00:00
Christopher Dunn
e1f8a4799a added dependency 2007-06-14 22:01:40 +00:00
Christopher Dunn
f986423955 Stripped carriage return and added eol-style native prop. 2007-06-14 21:01:26 +00:00
Christopher Dunn
f1a49467cf Updated platform on linux-gcc to include compiler version (necessary for multiple targets built in same directory, and not a bad idea for other builds). 2007-06-14 20:59:51 +00:00
Christopher Dunn
02c7fe78d3 Without this file, scons must be run twice initially. Hopefully, the file gets rebuilt properly, as I do not know how to fix the scons rule correctly. 2007-06-14 19:41:21 +00:00
Christopher Dunn
d2fdeb3a9a LD_LIBRARY_PATH needed for linux build tests. (Really, passing -Wl,-rpath to the linker would be better, but scons is not good about automating that.) 2007-06-14 19:32:40 +00:00
Christopher Dunn
e0d7224804 Added svn:eol-style native 2007-06-14 17:58:59 +00:00
Christopher Dunn
f4b73938d2 I always have compiler problems when using operator[](unsigned) when I pass int instead, so I added a note to the comments. 2007-06-13 17:02:59 +00:00
Christopher Dunn
9f8abcb258 Indentation is not perfect, but pretty good. Not sure how to perfect, given the difficulty of testing the last char written. 2007-06-13 17:02:01 +00:00
Christopher Dunn
605cd7e902 Added StyledStreamWriter, which has no reason to derive from Writer, since its write() method does cannot return a string and must take a stream. 2007-06-13 15:55:50 +00:00
Christopher Dunn
8985cee674 Added prop svn:eol-style native. Stripped carriage-returns on unix. Hopefully, this will work for Windows too now. 2007-06-13 15:52:48 +00:00
Christopher Dunn
6d135cb5e3 Added prop svn:eol-style native. Stripped carriage-returns on unix. Hopefully, this will work for Windows too now. 2007-06-13 15:51:04 +00:00
Christopher Dunn
b2f720456e Added prop svn:eol-style native. Stripped carriage-returns on unix. Hopefully, this will work for Windows too now. 2007-06-13 15:48:30 +00:00