Hello,
Suppose we have json:
{
"item" : {
"val1" : 1
},
"item" : {
"val2" : 2
},
"item" : {
"val3" : 3
}
}
jsoncpp parse it ok, but root node have one child node only and it is the last: "item" : { "val3" : 3 }
Is this a bug or feature?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-01-18
Yes, but i hope you guess that people use json not only in javascript.
Actually i store data in bson format, in json we just describe data that later convert to bson. In C# i used json parser by Newtonsoft which work fine and such i want.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Suppose we have json:
{
"item" : {
"val1" : 1
},
"item" : {
"val2" : 2
},
"item" : {
"val3" : 3
}
}
jsoncpp parse it ok, but root node have one child node only and it is the last: "item" : { "val3" : 3 }
Is this a bug or feature?
Seems like perfectly normal behavior to me. Test in Chrome:
Yes, but i hope you guess that people use json not only in javascript.
Actually i store data in bson format, in json we just describe data that later convert to bson. In C# i used json parser by Newtonsoft which work fine and such i want.