# Writing and extracting JSON documents from DynamoDB

Use tDynamoDBOutput to write a JSON document to a DynamoDB table and then use tDynamoDBInput to extract a child element of this JSON element.

Information noteNote: From 8.0.2-R2025-08 onwards, this scenario applies to the SDK v2 versions of tDynamoDBInput and tDynamoDBOutput.

Prerequisites:

* A Talend Studio with Big Data
* Your AWS credentials that have been granted the access to your Amazon DynamoDB.

The sample data to be used reads like this:

```
21058;{"accountId" : "900" , "accountName" :  "xxxxx" , "action" : "Create", "customerOrderNumber" : { "deliveryCode" :  "261" , "deliveryId" :  "313"}}
21059;{"accountId" : "901" , "accountName" :  "xxxxy" , "action" : "Delete", "customerOrderNumber" : { "deliveryCode" :  "262" , "deliveryId" :  "314"}}
```

This data has two columns: DeliverID and EventPayLoad, seperated by a semicolon (;). The JSON document itself is stored in the EventPayLoad column.

![](https://help.qlik.com/talend/en-US/components/8.0/Resources/images/use_case-dynamodb_json.png)

### In this section

* [Designing the data flow around the DynamoDB components](https://help.qlik.com/talend/en-US/components/8.0/amazon-dynamodb/designing-data-flow-around-dynamodb-components-in)
* [Writing the sample JSON documents to DynamoDB](https://help.qlik.com/talend/en-US/components/8.0/amazon-dynamodb/writing-sample-json-documents-to-dynamodb)
* [Extracting a JSON document using advanced filters](https://help.qlik.com/talend/en-US/components/8.0/amazon-dynamodb/extracting-json-document-using-advanced-filters)