Example, I have the following JSON:
{
Casa:'b32',
integrantes:{
pessoa: 'joao',
pessoa: 'Maria',
pessoa: 'Daniel'
}
}
When inserting into the database it stays this way.
Apparently it is overwritten. I currently do this insertion through Delphi (), but the same occurs on the MongoDB console itself;
In Delphi:
oDoc: TMongoDocument;
oDoc.BeginObject('doc').Append(stringJson).EndObject;
collection.Insert(oDoc);
Is there any way to insert these duplicate objects into Json? I did not find anything in Mongo's documentation about this duplicity or insertion in this way.