I've been trying to be able to insert a list of data type items into a 'jsonb' column (not an array) in Supabase. It works for certain items following the same data structure, but not for others. I've made it so dateTimes convert to UTC, then to ISO8601 string. I keep getting a variant of this 400 POST error in my console logs saying usually something like this: "code": "22P02",
"code": "22P02",
"details": "\"[\" must introduce explicitly-specified array dimensions.",
"hint": null,
"message": "malformed array literal:
The things I'm trying to convert to json for insert are a list of data type items with this Shcema:
itemID: string
orderIndex: Int
title: string
note: string
isCompleted: bool
completedAt: dateTime
isRequired: bool