Menu

/trunk/jsoncpp/include/json/value.h Commit Log


Commit Date  
[r187] (35.6 kB) by blep

Fixed typo: amalga*ma*te. Replaced macro JSON_IS_AMALGATED with JSON_IS_AMALGAMATION

2011-05-02 21:09:30 View
Download
[r186] (35.6 kB) by blep

Value::compare() is now const and has an actual implementation with unit tests.

2011-05-02 20:11:48 View
Download
[r185] (35.6 kB) by blep

Untabified some sources

2011-05-02 18:41:01 View
Download
[r165] (35.5 kB) by blep

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 View
Download
[r156] (35.4 kB) by blep

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 View
Download
[r154] (34.2 kB) 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 View
Download
[r153] (34.1 kB) 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 View
Download
[r150] (33.5 kB) 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 View
Download
[r149] (33.3 kB) 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 View
Download
[r146] (33.1 kB) 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 View
Download
Older >