As there is not available answer for this. I wanna do my contribution.
I exactly had the same error & ran into same issue spent hours trying to debug. So please try below approach.
Try using list of list. I had a JSON payload, I append all the JSON into a list.. then again I put this list of JSON into a list.
Sample code:
list_of_list_data = [list(item.values()) for item in list_data]
Please let me know if it works.