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 qual1 TO
qual2 | The date-time value will be formatted as  Date/time values can be converted from/to UTC by using the  | 
| INTERVAL YEAR TO MONTH,INTERVAL YEAR TO
YEAR | The interval value will be formatted as  | 
| INTERVAL DAY TO FRACTION(n),INTERVAL DAY TO SECOND,INTERVAL DAY TO MINUTE,INTERVAL
DAY TO HOUR | The interval value will be formatted as "DD
hh:mm:ss.fffff"(with double quotes), depending on the interval type definition. | 
| 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 ( |