You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(5) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
(4) |
Mar
(1) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
|
May
(30) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
(1) |
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
|
|
|
|
|
From: <Cha...@De...> - 2011-02-15 06:50:17
|
Hello, Is the below patch applied to SVN? Thanks, Sekhar. -----Original Message----- From: P, Chandrasekhar Sent: Monday, January 31, 2011 12:53 PM To: 'jso...@li...' Subject: Patch for Bug ID: 3062498(Bug when parsing duplicate names) Hello Baptiste, Pls review and apply the following patches into SVN as a bug fix: *** jsoncpp-src-0.5.0/include/json/features.h 2010-03-12 13:01:35.000000000 +0530 --- jsoncpp-src-0.5.0-latest/include/json/features.h 2011-01-11 16:08:15.000000000 +0530 *************** *** 23,28 **** --- 23,29 ---- * - Comments are forbidden. * - Root object must be either an array or an object value. * - Assumes Value strings are encoded in UTF-8 + * - Duplicate keys are NOT allowed within objects. */ static Features strictMode(); *************** *** 35,40 **** --- 36,46 ---- /// \c true if root must be either an array or an object value. Default: \c false. bool strictRoot_; + + /** \c true if only unique keys are allowed within objects. Default: \c false. + * - RFC4627 mentions that key name SHOULD be unique + */ + bool uniqueKeys_; }; } // namespace Json *** jsoncpp-src-0.5.0/src/lib_json/json_reader.cpp 2010-03-12 13:01:35.000000000 +0530 --- jsoncpp-src-0.5.0-latest/src/lib_json/json_reader.cpp 2011-01-11 16:50:45.000000000 +0530 *************** *** 19,24 **** --- 19,25 ---- Features::Features() : allowComments_( true ) , strictRoot_( false ) + , uniqueKeys_(false) { } *************** *** 36,41 **** --- 37,43 ---- Features features; features.allowComments_ = false; features.strictRoot_ = true; + features.uniqueKeys_ = true; return features; } *************** *** 505,510 **** --- 507,518 ---- colon, tokenObjectEnd ); } + if(features_.uniqueKeys_ && currentValue().isMember(name)) + { + return addErrorAndRecover( "Duplicate key found", + tokenName, + tokenObjectEnd ); + } Value &value = currentValue()[ name ]; nodes_.push( &value ); bool ok = readValue(); thanks, sekhar. |