Menu

Code Commit Log


Commit Date  
[r154] by blep

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 Tree
[r153] by blep

- 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 Tree
[r152] by blep

updated license with clearer information

2010-04-27 16:38:30 Tree
[r151] by blep

- added unit test and roadmap for handling of escape sequence "\/"

2010-04-27 16:37:50 Tree
[r150] by blep

JsonCpp is now licensed under MIT license, or public domain if desired and recognized in your jurisdiction.

2010-04-20 21:35:19 Tree
[r149] by blep

- 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 Tree
[r148] by blep

- added need for 64 bits integer to roadmap

2010-04-14 13:17:26 Tree
[r147] by christopherdunn

Just testing svn commit.

2010-03-23 00:10:35 Tree
[r146] by blep

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 Tree
[r145] by blep

- extracted some utility functions out-of reader and parser.

2010-03-13 12:24:38 Tree
Older >
MongoDB Logo MongoDB