Loading ...
Sorry, an error occurred while loading the content.

1541Sanity Check - New to JSON

Expand Messages
  • the_old_chief
    Jun 25, 2010
    • 0 Attachment
      I am a eLearning Application developer who is working on his first experience with JSON. My application has no active server (php, asp, java, etc) to work with. So my json data must be hand-coded. JSON data is being rendered on the client side within a grid (jqGrid). A 'clicked' row is sending data into respective tabbed type windows for further user analysis. I am needing a quick sanity check of my JSON structure. Am I on the right track?? Or am I barking up the wrong tree?? I have temporarily placed a copy of my data (38cal.json) in the files section of this group.
      Here is the premise to the structure.
      - root node is smallArms. I have other files that will have roots of bombs, chemical, fuses, etc.
      - within smallArms, I have two sub-divisions of bullets and shotgun. (shotgun portion not displayed).
      - Bullets are broken down into DODICs - military way of identifying a bullet. There could be several dodics listed under 'bullets'. Such as A415 is still a cartridge for US guard or security use in 38 caliber pistols - no matter who is the maker of the cartridge. But there could be other dodics that are related to 38 caliber bullets (depending on the construction of that munition (jacketed, non-jacketed, training round, etc), which would be listed below this dodic.
      - Within that DODIC are the munition particulars such as size, weight, chamber pressure, supply information, pictures, animations, etc.


      I have taken a look at the documentation on json.org as to structure. I am still a little lost on when to use a object and when to use an array. I thought I would take a crack at it and allow people to tell me I am way off base or that I am close.

      respectfully,
      Tony
    • Show all 4 messages in this topic