Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
New to DynamoDB. Is there a more convenient way to add/put items?

Looking at this example in the AWS DynamoDB documentation, I see that PutItemRequest.Item is a Dictionary. I'm trying to insert a complex JSON object into DynamoDB that can have anywhere between 200 to 300 attributes within a hierarchy of nested objects and arrays.

Do I really have to convert that JSON object to a Dictionary before I can insert it into DynamoDB? If so, is there a way to do this that doesn't involve hardcoding and/or manually converting it one attribute at a time?

Apologies if this question is a little vague. I'm really just looking for pointers on how to proceed from here.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The documentation includes an example of how to Insert JSON Format Data into a DynamoDB Table:

// using Amazon.DynamoDBv2;
// using Amazon.DynamoDBv2.DocumentModel;

var client = new AmazonDynamoDBClient();
var table = Table.LoadTable(client, "AnimalsInventory");
var jsonText = "{\"Id\":6,\"Type\":\"Bird\",\"Name\":\"Tweety\"}";
var item = Document.FromJson(jsonText);

table.PutItem(item);

More broadly, per the same documentation:

The AWS SDK for .NET supports JSON data when working with Amazon DynamoDB. This enables you to more easily get JSON-formatted data from, and insert JSON documents into, DynamoDB tables.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!