Announcement

Collapse
No announcement yet.

Question About JSON Structure

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • telco
    replied
    Hi i am not using any plugin..
    you can check on this link credit to BioHazard
    https://forums.indigorose.com/forum/...code-confusion

    Thanks

    Leave a comment:


  • kevin8
    replied
    Originally posted by telco View Post
    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.
    Can you share the JSON plug-in? I didn't find the download link. Thank you

    Leave a comment:


  • telco
    started a topic Question About JSON Structure

    Question About JSON Structure

    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.
Working...
X