keys are being reordered for tree view
Closed this issue · 5 comments
joetym commented
Opening this:
{"data":{"STRING1":-10,"0":-0.1,"1":0,"STRING2":20}}
In the nice tree view, keys are re-ordered to:
0,1,STRING1,STRING2
Would be nicer if they stay in the order they are in the JSON.
Using Firefox Quantum 64.0.2 (64-bit)
bhollis commented
Unfortunately order isn’t guaranteed - we just show whatever the browser’s JSON parser ends up doing.
joetym commented
Should I raise it as a firefox issue then ?
bhollis commented
That sounds best.
joetym commented
It does the same thing in Chrome. Any idea why that might be ?
joetym commented
Seems they all do the same thing,
You can stop it by adding something non-numeric to the key _ or i perhaps, seems like a bit of a hack. Would it be interesting to know why they thought this was a good idea.