Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Strings are written in double quotes. The control characters \t (tab), \r (CR) and \n (NL) are literally written. To suppress its special meaning the $ character is written \$. No other characters are allowed to follow the \ escape character.

Examples:

some value"
Expression
some value
JSON"var": "some value"
ExplanationUnquoted values that are added to the JOC Cockpit GUI are considered strings if they do not start with a digit, a Boolean value or the name of a built-in function.
Expression
'some value'
JSON"var": "
\"
'some value
\""
'"
ExplanationSingle quoted values are considered string constants.
Expression
"\t means the TAB control character"
JSON"var": "\"\\t means the TAB control character\""
ExplanationDouble quoted values can hold special special characters and variables. Inside double quotes backslashes are automatically doubled with the JSON storage format.
Expression
"\r means the CR control character"
JSON"var": "\"\\r means the CR control character\""

...

Expression
"\$ means the literal character"
JSON"var": "\"\\$ means the literal character\""
ExplanationA backslash can be used to escape the $ character that otherwise signals a variable. 

Number

Numeric constants are implemented as Java  BigDecimal values and allow integer values and long values to be specified.

Example:

Expression
1
JSON"var": 1
ExplanationNumeric values that are assigned without use of quoting are considered being numbers.
Expression
'05331'
JSON"var": "'05331'"
ExplanationNumeric values that are assigned with single quotes are considered being strings and for exapmle preserve leading zeros.

Operators

Comparison Operators

...