Hi all,I have the following codevar shaftCollection:ArrayCollection = new ArrayCollection();
for(var i:uint = 0; i < shaftsManager.shafts.length; i++) {
var shaft:Shaft = shaftsManager.shafts;
var shaftHash:Hashtable = new Hashtable;
shaftHash.add("name", shaft.shaftName);
shaftHash.add("priority", shaft.priorityInt);
if(shaft.openSpace == null) {
//we have properties
}
else {
//we have an open space
}
shaftCollection.addItem(shaft);
}
jsonVar.add("inspection-area", insprectionArea);
jsonVar.add("shafts", shaftCollection);
Alert.show(JSON.encode(jsonVar));
unfortunately the JSON that is returned is "{size:2}" and not a nice long string of JSONwhy is this? and how do I go about converting a Hashtbale (or similar) to a JSON string?