The answer from E.J. Brennan looks correct, for a single record, but it doesn't answer the original question (which needs to add an array of records).

For this, the command is

aws dynamodb batch-write-item --request-items file://aws-requests.json

But, you'll need to make a modified JSON file, like so (note the DynamoDB JSON that specifies data types):

{
    "YourTableName": [
        {   
            "PutRequest": {
                "Item": { 
                    "Column1": { "S": "Column1 Value" },
                    "Column2": { "S": "Column2 Value" },
                    "Column3": { "S": "Column3 Value" },
                    "Column4": { "S": "Column4 Value" },
                }
            }
        },
        {
            "PutRequest": {
                "Item": { 
                    "Column1": { "S": "Column1 Value" },
                    "Column2": { "S": "Column2 Value" },
                    "Column3": { "S": "Column3 Value" },
                    "Column4": { "S": "Column4 Value" },
                }
            }
        }
    ]
}
Answer from carpiediem on Stack Overflow
🌐
AWS
aws.amazon.com › blogs › database › working-with-json-data-in-amazon-dynamodb
Working with JSON data in Amazon DynamoDB | Amazon Web Services
May 1, 2023 - Amazon DynamoDB allows you to store JSON objects into attributes and perform many operations on these objects, including filtering, updating, and deleting. This is a very powerful capability because it allows applications to store objects (JSON data, arrays) directly into DynamoDB tables, and ...
🌐
AWS Fundamentals
awsfundamentals.com › blog › aws-dynamodb-data-types
AWS DynamoDB Data Types
September 12, 2022 - Map - This is again a JSON document as an attribute. A common example is to have a subscription object in your user model.
Discussions

AWS - import JSON file to load Dynamo table
I have a json file that I want to use to load my Dynamo table in AWS. In the AWS console, there is only an option to create one record at a time. Not good: ) Essentially my .JSON file is an arr... More on stackoverflow.com
🌐 stackoverflow.com
Write a JSON File as a DynamoDB Table Item - AWS - HashiCorp Discuss
I have an application that can read a JSON file from a DynamoDB table item at startup and use it for configuration. I have a dynamodb table that has 2 columns, “id” and “json”. I need to insert a value into that file using the template function for Terraform for a server url. More on discuss.hashicorp.com
🌐 discuss.hashicorp.com
0
July 6, 2021
Creating Amazon DynamoDB Table Items from a JSON File - Stack Overflow
Another possibility would be to iterate through the json with a loop and write each element individually into the database. Since this would require 100,000 writes, I am now looking for an alternative. What is the possibility to solve this problem quickly and efficiently? ... Be aware that you can temporarily increase a DynamoDB table's write capacity for ingestion. Example ... More on stackoverflow.com
🌐 stackoverflow.com
Using DynamoDB as a JSON dump store?
Yes. Just create a table where your ID is the hash key and dump it all as a record. However, if you're just storing data using an ID, it might be cheaper to save the json as a file in an S3 bucket. More on reddit.com
🌐 r/aws
13
1
April 28, 2021
🌐
Medium
medium.com › @HugYourBugs › the-best-way-to-batch-write-data-from-json-file-to-dynamo-db-b2f4aaee8a17
The best way to batch write data from JSON file to dynamo db. | by Shramika Kalalbandi | Medium
February 17, 2022 - On successful config set up, I ran the command `aws dynamodb batch-write-item --request-items file://result.json on the AWS CLI assuming it will write all the data present in result.json file obtained from step 3 to my destination dynamo table.
🌐
HashiCorp Discuss
discuss.hashicorp.com › terraform providers › aws
Write a JSON File as a DynamoDB Table Item - AWS - HashiCorp Discuss
July 6, 2021 - I have an application that can read a JSON file from a DynamoDB table item at startup and use it for configuration. I have a dynamodb table that has 2 columns, “id” and “json”. I need to insert a value into that file using the template ...
Find elsewhere
🌐
AWS
docs.aws.amazon.com › aws sdk for .net › developer guide › work with aws services in the aws sdk for .net › code examples with guidance for the aws sdk for .net › using amazon dynamodb nosql databases › json support in amazon dynamodb
JSON support in Amazon DynamoDB - AWS SDK for .NET (V3)
To determine the table to get the item from, the LoadTable method of the Table class uses an instance of the AmazonDynamoDBClient class and the name of the target table in DynamoDB. The following example shows how to use JSON format to insert an item into a DynamoDB table:
🌐
Qlik Talend Help
help.qlik.com › talend components for jobs › amazon dynamodb › amazon dynamodb scenario › writing and extracting json documents from dynamodb
Writing and extracting JSON documents from DynamoDB | Talend Components for Jobs Help
... 21058;{"accountId" : "900" , "accountName" : "xxxxx" , "action" : "Create", "customerOrderNumber" : { "deliveryCode" : "261" , "deliveryId" : "313"}} 21059;{"accountId" : "901" , "accountName" : "xxxxy" , "action" : "Delete", "customerOrderNumber" : { "deliveryCode" : "262" , "deliveryId" ...
🌐
DynamoDB
dynobase.dev › code-examples › dynamodb-query-json
[Code Examples] DynamoDB: Query JSON
But you can use the query operation to get data as an array and pass the result to JSON.stringify method to convert the array to a JSON string. const AWS = require('aws-sdk'); const dynamoDb = new AWS.DynamoDB.DocumentClient(); const params = { TableName: 'tableName', KeyConditionExpression: 'primaryKey = :primaryKeyValue', ExpressionAttributeValues: { ':primaryKeyValue': 'value' } }; dynamoDb.query(params, (error, data) => { if (error) { console.error(error); return; } console.log(JSON.stringify(data.Items)); });
🌐
Reddit
reddit.com › r/aws › using dynamodb as a json dump store?
r/aws on Reddit: Using DynamoDB as a JSON dump store?
April 28, 2021 -

I have some JSON which has a variable number of fields. It will always have an "ID" field however.

What I want to know is: Does DynamoDB support just dumping this JSON in a table regardless of what fields it has? What I would like there to be would be an "ID" field and a "data" field in the table, where the "data" is simply all the JSON except the ID.

Without using Dynamo's specific structure I can't see how this is possible, but I wanted to get another opinion. Can Dynamo support JSON which has no set structure or schema whatsoever?

🌐
AWS
docs.aws.amazon.com › amazon dynamodb › developer guide › using dynamodb with other aws services › integrating dynamodb with amazon s3 › dynamodb data export to amazon s3: how it works › dynamodb table export output format
DynamoDB table export output format - Amazon DynamoDB
When creating custom parsers for DynamoDB JSON export data, the format is JSON lines · . This means that newlines are used as item delimiters. Many AWS services, such as Athena and AWS Glue, will parse this format automatically. In the following example, a single item from a DynamoDB JSON ...
🌐
Tibco
integration.cloud.tibco.com › docs › Subsystems › flogo-amazondynamodb › users-guide › amazon-dynamodb-query.html
Amazon DynamoDB Query
You can enable the Use app level schema toggle switch to configure the DynamoDB JSON response from app level schema.
🌐
Blowstack
blowstack.com › tools › dynamo-db-converter
DynamoDB two way converter tool
This includes applications in learning, using the AWS Command Line Interface (CLI), or inputting data into the AWS console's graphical user interface. Additionally, the tool offers the functionality to convert data from DynamoDB's format back into standard JSON, if required.
🌐
Codemia
codemia.io › home › knowledge hub › create a dynamodb table from json
Create a DynamoDB table from json | Codemia
July 30, 2025 - One common use case is creating ... predefined dataset. This article will explore the detailed process of creating a DynamoDB table from a JSON file, including technical explanations, examples, and essential considerations....
🌐
Medium
medium.com › @NotSoCoolCoder › handling-json-data-for-dynamodb-using-python-6bbd19ee884e
Handling JSON data for DynamoDB using Python | by NotSoCoolCoder | Medium
July 23, 2022 - We have two ways to add these json data to DynamoDB in required format. One is a bit lengthy way using low level client as part for boto3. With this, you need to explicitly specify datatype with values.