Data type
|
Description
|
Examples
|
string
|
A string of characters enclosed in double or single quotes.
|
"jump rope"
|
number
|
An unquoted numeric value, which can include an exponent using scientific notation.
|
17
54.35 0.9582e-42 |
boolean
|
The unquoted, lowercase, literal value true or false.
|
true
|
null
|
The unquoted, lowercase, literal value, null.
|
null
|
undefined
|
The unquoted, lowercase, literal value, undefined.
|
undefined
|
Non-standard JavaScript data type
|
Representation
|
Date
|
A string in the ISO 8601 format, "yyyy-mm-ddThh:mm:ss.sss+hh:mm". JavaScript does support a Date object for working with dates and times. However, all dates and times returned from an OpenEdge application server to a JSDO are stored as a string in the ISO 8601 format.
|
Binary data
|
A string consisting of the Base64 encoded equivalent of the binary data, which in OpenEdge can be represented in an ABL BLOB, MEMPTR, or ROWID data type.
|
Data type
|
Description
|
Examples
|
Object
|
A comma-delimited list of named values (properties), either primitive or complex, enclosed in braces ({}). The property names can either be literal values or quoted strings.
|
{ myString : "jump rope",
'myNum' : 17, 'myBool' : false } |
Array
|
A comma-delimited list of unnamed values, either primitive or complex, enclosed in brackets ([])
|
[ "jump rope", 17, false ]
|