Announcement

Collapse
No announcement yet.

Question About JSON Structure

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

  • 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.

  • #2
    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

    Comment


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

      Thanks

      Comment

      Working...
      X