Hi, lately i started to study JSON Structure, and its quite interesting to me to learn it more rather than xml.
Now i have notice notice some string output from the example of BioHazard using json lua.
On btn click:
sReturn = json.encode({ Company = "IndigoRose", Version = "8.2", x = "10", y = "20"})
Dialog.Message("JSON encoded string", sReturn, MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
1. i am expecting the dialog will print {"Company": "IndigoRose", "Version": "8.2", "x": "10", "y": "20"}
2. but instead it print different arrangement with this: {"y": "20", "x": "10", "Company": "IndigoRose", "Version": "8.2" }
is that normal? i am asking this because i need to arranged all the data into a json file.
Thank you.
Now i have notice notice some string output from the example of BioHazard using json lua.
On btn click:
sReturn = json.encode({ Company = "IndigoRose", Version = "8.2", x = "10", y = "20"})
Dialog.Message("JSON encoded string", sReturn, MB_OK, MB_ICONNONE, MB_DEFBUTTON1);
1. i am expecting the dialog will print {"Company": "IndigoRose", "Version": "8.2", "x": "10", "y": "20"}
2. but instead it print different arrangement with this: {"y": "20", "x": "10", "Company": "IndigoRose", "Version": "8.2" }
is that normal? i am asking this because i need to arranged all the data into a json file.
Thank you.