This problem has been self-solved.
The connect.getContactAttributes method seems to get only the value of Attributes in the contact flow. I misunderstood that it was to get the JSON itself sent from the contact flow.
I found that the value of Attributes is set by posting a key-value pair in the "Set contact attributes" block of the Amazon Connect contact flow.
RE: Amazon Connect - Populate contact Attributes for Droppedasked a month ago
Get Attributes from Amazon Connect to Amazon Lexasked 4 years ago
Use Customerdisplay name in amazon connect contact flowasked 8 months ago
How to map call duration in call recordings of amazon connect?Accepted Answerasked 7 months ago
User defined contact attribute value in Amazon Connect contact flow is not saving or being passed to Salesforceasked 4 months ago
Enabling Contact Lens for Amazon Connect for specific callsAccepted Answerasked 2 years ago
Unable to see Transcript along with Call Recording within Amazon Connectasked 2 years ago
Transferring the Amazon connect contact while waiting for the Agent in the Queueasked 7 months ago