Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Passing JSON to new window messes up the "order" of the object

$
0
0

Hello, Im creating and opening a window via a navwindow, and basicly Im doing this:

var childWindow = Ti.UI.createWindow({ url: '...', data: json_data });

navWindow.openWindow(childWindow) etc etc

And inside the "childWindow" im trying to fetch the JSON, which works fine:

var data = Ti.UI.currentWindow.data;
But when Im iterating the data, the order has been rearranged. The original json_data has keys, but these seems to beeing resetted. Does anyone know how to pass a JSON-object to the "child"-window and preserv the order and keys?

Latest Ti 3.2.2 and on iPhone.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>