I'm writing a Python package that manipulates the JSON trial_data file. I currently use Ordered Dictionaries to keep the listing of properties in the objects the same as in the editor-generated JSON. (Lists, of course, are lists.) So my package processing a blank would give the JSON as:
Code: Select all
{"profiles":[0],"evidence":[0],"places":[0],"sounds":[0],"music":[0],"popups":[0],"cross_examinations":[0],"scenes":[0],"scenes_aai":[0],"frames":[0],"ui":{"base":"classic","elements":[]}}
Code: Select all
{"places":[0],"popups":[0],"scenes":[0],"profiles":[0],"evidence":[0],"scenes_aai":[0],"music":[0],"cross_examinations":[0],"frames":[0],"ui":{"base":"classic","elements":[]},"sounds":[0]}
Will v6 have problems if I switch to regular dictionaries to save on memory? The data would be the same, but the order within objects changes. I know that order dependence in an object's name-value pair is terrible, but I want to make absolutely sure that Unas isn't using that for some sort of hack in the development phase.
Edit: I looked at the v6 code and then realized that nobody who codes like Unas would ever use order-dependent objects. Question answered, then.