talpa / superobject

Automatically exported from code.google.com/p/superobject
0 stars 0 forks source link

Superobject not retrieving tems in same order as in json-file #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure if this is an issue, or if I'm missing something.

What steps will reproduce the problem?

1. I compiled the VirtualTreeView demo in XE5 and opened the sample json-file. 
Things were organised alphabetically. 
2. I changed the property "TreeOptions.AutoOptions" by removing toAutoSort and 
expected the treeview to display items in the same order as in the sample file, 
but they were not.

For example in the treeview bicycle is displayed before book even though they 
are the other way round in the file. And all category, author, title, price are 
also mixed up.

What version of the product are you using?

Sourcecode downloaded October 4th 2013.

Please provide any additional information below.

I've seen other issues mentioning "pseudo namespace" and hashes. Are these what 
cause this behaviour ? Is there any property or parameter that can be changed 
to get the desired unaltered order ?

Original issue reported on code.google.com by shakesp...@gmail.com on 8 Oct 2013 at 11:06

GoogleCodeExporter commented 9 years ago
Hi, I'm having the same issue. Did you find any solution? 

Original comment by fon...@gmail.com on 5 Jan 2014 at 9:20

GoogleCodeExporter commented 9 years ago
Hi!
For projects that require the order of json-items to be unaltered I'm using 
another json-object. You can find sourcecode here:
https://svn.code.sf.net/p/radstudiodemos/code/branches/RadStudio_XE/Delphi/DataS
nap/JSONViewer/
And description here:
http://edn.embarcadero.com/article/40882/

When I have time I may implement a boolean property in TSuperobject myself that 
can turn the current behaviour on and off. Cause I prefer to have only one 
json-object and I like TSuperobject best. :)

Hope that helps you.

Original comment by shakesp...@gmail.com on 13 Jan 2014 at 7:30