JSON.parse(). The game uses JSON (
.json) files for storing raw data, when the overhead of a script is not required. Currently they are used for:
- Civilization data (
- Random map definitions (
- AI definitions (
- Assorted data shared by game setup and Atlas (
// are not allowed. If you need to document something in JSON data, the only practical way of doing this is to use a property string like:
... "XXCOMMENTXX": "This is a comment about something in the JSON data, not quite as nice as a // comment is it?" ...
For more information, see http://json.org/.