onryldz / x-superobject

Delphi Cross Platform Rapid JSON
316 stars 118 forks source link

Only The Last Duplicate Pair Is Accessable In A ISuperObject Containing Duplicate Name/Value Pairs #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a JSON Array.
2. Put a JSON object in it.
3. Put two name/value pairs with the same name in it (like 
[{"name":"bob","name":"joe"}]).
4. Load the array into an ISuperArray;
5. Load the first object into an ISuperObject;
6. Loop through the name/values with .Next;
7. The first duplicately named property will not exist or be read. Only the 
last shows up.
8. ISuperObject.Count also ignores the property. ISuperObject.Count will be 1 
and it should be 2.

What is the expected output? What do you see instead?

In an older version Count was correct. It came back as 2. And both 
non-duplicate name/value pairs were able to be looped through.

What version of the product are you using? On what operating system?

Version r67. May 23. 

Windows 8 and IOS.

Please provide any additional information below.

Original issue reported on code.google.com by webmas...@pulado.com on 26 Jun 2014 at 12:21

GoogleCodeExporter commented 9 years ago
As i understood; You want to have duplicated pairs.this is not exist in JSON 
standarts.If i undrestood wrong please give me an example with explanation.

Original comment by onryld...@gmail.com on 19 Jul 2014 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by onryld...@gmail.com on 15 Sep 2014 at 8:02