JSON Response Formatting for Lambda

Job ID: 38253216

Budget: $10 – $30 USD

Key Deliverables:
- Conversion of the response into well-structured JSON format

I need help properly formatting the response from my PostgresDB in my Lambda function. The function is working correctly and accepting paremeters as intended, but the response is formatted in one huge line vs key value pairs on seperate lines like a nornal response would be.

Attached is:
Python Function Code
DDL for Postgres Table
CSV sample data
Test event json
Related categories: Python PostgreSQL Aws Lambda