Postgresql – Converting grouped records (either DataFrame or SQL table) into a JSON array of objects
I've tried using both Python and Postgres to convert a table of data into JSON that can be used to render a nested dropdown in a web UI. Here is how the data is structured: group_desc category_desc subcategory_desc item_desc Group…