BDL to JSON type conversion rules
Specific type conversion rules apply when converting a BDL variable to JSON.
| Source Genero BDL type | JSON result string |
|---|---|
RECORD .. END RECORD |
The JSON string will be a JSON object in the
form:
|
DYNAMIC ARRAY OF ... |
The JSON string will be a JSON array in the
form:
|
DICTIONARY OF ... |
The JSON string will be a JSON object in the
form:
|
BOOLEAN |
Will be serialized with the JSON values |
TINYINT,
SMALLINT, INTEGER, BIGINT,
SMALLFLOAT, FLOAT, DECIMAL,
MONEY |
Any numeric type will be serialized to this form: an optional minus sign ( |
DATE |
The date value will be formatted as |
DATETIME |
The date-time value will be formatted as Note that the |
INTERVAL |
The interval value will be formatted as |
BYTE |
Will be serialized to a Base64 encoded double quoted string. The Base64 encoding is described in [RFC4648]. |
TEXT, CHAR,
VARCHAR, STRING |
Character string data will be serialized as a double quoted string with backslash escaping. List of characters requiring
escaping:
|
| Other |
Any other type will be serialized as a double quoted ( |