Primitives : 10 Primitive Types
 
10 Primitive Types
While JSON data types are primarily used to represent data in the WebSocket API protocol, in some messages certain Primitive types may also be defined as the value of a "Type" name to describe message data.
A Primitive type represents some type of base, system information (such as integers, dates, or strings).
 
Table 8: Primitive Types
Type
Definition
Array
An array containing values whose Type is one of the other primitives in this section. All values in the array have the same Type.
AsciiString
An ASCII string which should contain only characters that are valid in ASCII specification. Represented in JSON by a string.
Buffer
Represents a raw byte buffer type. Represented in JSON by a string, which uses a Base64 encoding.
Date
Defines a date with month, day, and year values. Represented in JSON by a string.
Date follows the ISO 8601 format for representing date.
DateTime
Combined representation of date and time. Contains all members of Date and Time. Represented in JSON by a string.
DateTime follows the ISO 8601 format for representing the date and time.
Double
A double-precision floating-point type. Represented in JSON by a number or a string with one of the following values:
"Inf": Infinity
"-Inf": Negative Infinity
"NaN": Not a Number
Enum
A string or integer, depending on whether a given Enum value has a string to represent it.
Float
A single-precision floating-point type. Represented in JSON by a number or a string with one of the following values:
"Inf": Infinity
"-Inf": Negative Infinity
"NaN": Not a Number
Int
A signed integer type. Represented in JSON by a number.
Real
A representation of a decimal or fractional value. Represented in JSON by a number, or a string with one of the following values:
"Inf": Infinity
"-Inf": Negative Infinity
"NaN": Not a Number
RmtesString
Represents an RMTES (a multilingual text encoding standard) string. An RMTES string is represented in the WebSocket API Protocol as a UTF-8 encoded string.
NOTE: The Refinitiv Real-Time Advanced Distribution Server converts RMTES strings into UTF-8 strings. Strings posted into the Refinitiv Real-Time Distribution System with an RMTES type should follow the ASCII character set.
Time
Defines a time with hour, minute, second, millisecond, microsecond, and nanosecond values. Represented in JSON by a string.
Date follows the ISO 8601 format for representing time.
UInt
An unsigned integer type. Represented in JSON by a number.
Utf8String
Represents a UTF8 string which should follow the UTF8 encoding standard and contain only characters valid within that set. Represented in JSON by a string.