parsing/flatten_explode_utils library

Flatten nested data and explode arrays for tabular/BI export — roadmap #648.

Two transforms that turn JSON-like records into flat rows: flattenMap collapses nested maps and lists into dotted keys, and explode fans a row out into one row per element of a named array. Together they prepare nested API payloads for CSV / spreadsheet / BI tools that expect flat columns.

Functions

explode(Map<String, Object?> row, String arrayKey) List<Map<String, Object?>>
Explodes row into one row per element of the list at arrayKey.
flattenMap(Map<String, Object?> input, {String separator = '.'}) Map<String, Object?>
Recursively flattens nested maps in input into dotted keys.