JsonString

Family: JSON · 2 forms

What it does

JsonString takes jsonValue (an integer), and answers a string. That is the first of 2 forms.

Syntax

1
JsonString(jsonValue integer) → string
2
JsonString(jsonValue integer, value string)

Parameters

NameTypeIn forms
jsonValueintegerall
valuestring2

What each form returns

1JsonString(1)string
2JsonString(1, "value")nothing

Example · generated

Form 1, the command hands back the id

DO  Print(JsonString(1))  Sync()LOOP

Form 2, you choose the id yourself

JsonString(1, "value")DO  Sync()LOOP

JsonString is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

36 commands in JSON