Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

307
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda