Modding:Modding/JSON

From Starbounder - Starbound Wiki
Jump to: navigation, search

Quick Navigation


JSON

JSON is a file format that allows for the storage and organization of hierarchical data into a relatively compact and human-readable style.

For example, here is an excerpt from the chicken.monstertype file:

{
  "type" : "chicken",

  "categories" : [ "chicken" ],
  "parts" : [ "body" ],

It is a fairly simple matter to infer that "type" equals "chicken," it's in the "chicken" category, and there is a "part" called "body." Much more about the specifics of the JSON file format can be read on the Wikipedia page for JSON.