FTL JSON Message Format Reference
This section details the specific formatting of JSON messages used by the ActiveSpaces Connector for Apache Kafka. This subset of JSON is referred to here as FTL JSON.
The TIBCO FTL JSON message format is a subset of JSON, with some field type annotations to allow for more accurate field type conversions. It is also referred to as eFTL-flavored JSON and is used by other TIBCO products and connectors, including the Bridge to Apache Kafka Bridge, Bridge to Apache Pulsar, and, eFTL.
FTL JSON supports five basic field types: long, string, double, tibdatetime, and opaque, as well as arrays of those types. The long and string types are represented as standard JSON numbers and strings without any special annotations. Thus, the following JSON message is also a valid FTL JSON message, containing a long field named "my-long-field" and a string field named "my-string-field", as follows:
{
"my-long-field": 123,
"my-string-field": "hello!"
}
The other types are represented by JSON objects containing a single field with a special reserved field name indicating the type. For example, a double is indicated by a JSON object containing a single field with the reserved name "_d_":
{
"my-double-field": { "_d_": 7.8 }
}
Adding "my-double-field" to the previous JSON message:
{
"my-long-field": 123,
"my-string-field": "hello!"
"my-double-field": { "_d_": 7.8 }
}
Encoding Rules
For encoding rules for all supported types, as well as their Java-language equivalents, see the following table:
