Page History
...
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:
Expression |
| |
---|---|---|
JSON | "var": " | some value"some value" |
Explanation | Unquoted 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 |
|
---|---|
JSON | "var": " |
'some value |
'" | |
Explanation | Single quoted values are considered string constants. |
---|
Expression |
|
---|---|
JSON | "var": "\"\\t means the TAB control character\"" |
Explanation | Double quoted values can hold special special characters and variables. Inside double quotes backslashes are automatically doubled with the JSON storage format. |
Expression |
|
---|---|
JSON |
|
...
Expression |
|
---|---|
JSON | "var": "\"\\$ means the literal character\"" |
Explanation | A 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 |
|
---|---|
JSON | "var": 1 |
Explanation | Numeric values that are assigned without use of quoting are considered being numbers. |
Expression |
|
---|---|
JSON | "var": "'05331'" |
Explanation | Numeric values that are assigned with single quotes are considered being strings and for exapmle preserve leading zeros. |
Operators
Comparison Operators
...
Overview
Content Tools