JavaScript

Path: /src/type/js.coffee compiled to /lib/type/js.js

Also allowed are normal JavaScript files. In comparison to the JSON format it is more loosely so you may use single quotes, keys don’t need quotes at all and at last you may use calculations. But you may only access elements in the same file accessing data from outside is prevented by security.

Common file extension js.

JavaScript Code
// use an object { // null value null: null, // boolean setting boolean: true, // include a string string: 'test', // any integer or float number number: 5.6, // a date as string date: "2016-05-10T19:06:36.909Z", // and a list of numbers list: [1, 2, 3], // add a sub object person: { name: "Alexander Schilling", job: "Developer" }, // complex list with object complex: [ {name: 'Egon'}, {name: 'Janina'} ], // calculate session timeout in milliseconds calc: 15*60*1000, math: Math.sqrt(16) }

Format Options:

  • indent - Integer number of spaces or text to indent each level (defaults to 2 spaces)