Skip to content

Json Configuration

Nathanael Maher edited this page Jun 8, 2017 · 1 revision

This wiki page will briefly discuss how JSON files can be configured. If you want to learn about how JSON files work, please view other pages on the web (Good Source), this page will just discuss things specific to Archipelo and the Libgdx JSON library.

Default Values

Whenever JSON configuration files will be documented in the Archipelo wiki, there will always be a specified "default" value. This simply means that if you do not explicitly define what the value of a particular property is, it will be defaulted to that value.

This is useful if you don't care what the value is, or you plan on using the default value and just want to save space (although be mindful that it could change).

Styling

There are no specific styling guidelines for the Archipelo configuration files. Just make sure that everything is easy to read. For property names, you may want to use quotations or you may chose not to, either way is fine.

You may also add a comma at the end of the last element of an array. Whether you shose to or not is fine, but it just makes it so if a new element needs to be added to the array, the comma won't be forgotten.

Conclusion

If you have any other concerns about what is required, a good idea would be to check configuration files that are already used and are known to work. Every configuration file already has something similar to the one you will make so you have some good references.

Clone this wiki locally