This shows you the differences between two versions of the page.
|Both sides previous revision Previous revision|
gen:syntax [2018/02/04 19:18]
E.L.F. Vesala [Example JSON]
gen:syntax [2018/02/05 10:00] (current)
E.L.F. Vesala Formatting.
|Line 1:||Line 1:|
|====== Generator Service - Help ======||====== Generator Service - Help ======|
|-||Generators are defined using JSON. The expected data consists of an object (the generator or root object) which has a name, a resultPattern, and tables. name and resultPattern are strings, whereas tables is an array of objects.||+||Generators are defined using JSON-formatted text. The expected data consists of an object (the generator or root object) which contains ''name'', ''resultPattern'', and ''tables'' objects. The ''name'' and ''resultPattern'' objects are strings, whereas ''tables'' is an array of objects. |
|-||A table object has a name and entries. name is a string and entries is an array of strings.||+|
|+||A ''table'' object contains a ''name'' and ''entries'' objects. The ''name'' object is a string and ''entries'' is an array of strings.|
|===== Example JSON =====||===== Example JSON =====|