Parse this incoming data to json
Use PostgreSQL to convert each non-null incoming record into a JSON document. Each payload uses the format name=...;department=...;active=...;hours=.... Include records belonging to open batches only. Invalid boolean or integer values should become JSON null, while valid values should retain their appropriate JSON types.
record_id, batch_name, and parsed_jsonbatch_id, then record_id ascending| Column | Type | Description |
|---|---|---|
| batch_idPK | INT | Identifier for the incoming batch |
| batch_name | VARCHAR(100) | Human-readable batch name |
| is_open | BOOLEAN | Whether records from the batch are eligible for parsing |
| Column | Type | Description |
|---|---|---|
| record_idPK | INT | Identifier for the incoming record |
| batch_id | INT | Batch containing the incoming record |
| raw_payload | TEXT | Semicolon-delimited incoming data |