Skip to reading
The Variable Designer

Read the record in Raw JSON

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

The Fields tab is enough for ordinary editing. Raw JSON (Advanced) is useful when you want to inspect the exact stored value, especially the difference between null, "", a number and quoted text.

Figure 11. Last Choice in Raw JSON. Its value is null, without quotation marks.

Code example
{
  "id": "last_choice",
  "name": "Last Choice",
  "type": "string",
  "value": null,
  "folder": "Workshop"
}

The important property is value. That is the starting value used by a fresh runtime. Type is one of string, boolean, array or number. The folder helps you organise the record; it does not change its lifetime or who can read it.

1. Make a small edit in Raw JSON only if you need one. Keep the surrounding braces, commas and quotation marks valid.

2. Click Validate and Apply JSON (Advanced).

3. Return to Fields, check the result and save the project.

JSON uses straight double quotes, lower-case true, false and null, and no trailing comma after the final property. There is no Dictionary entry in Value Type. The structured list example in Chapter 15 uses dictionaries as members of an Array.

Page 14 of 37Permalink
Go to page