I have exported JSON files from aws dynamodb in this format:
[
{
"__typename": "Article",
<snip>
}
<snip>
]
This results in "Invalid JSON" error:
aws dynamodb batch-write-item --request-items file://Article.json
Error parsing parameter '--request-items': Invalid JSON:
The correct format is (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SampleData.LoadData.html) How to export the DynamoDB so that I could easily import it to tables? Or is there anything I could do to transform the JSON files that I receive from third party?