📜  dynamodb json 到普通 json - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:56.782000             🧑  作者: Mango

代码示例1
// dynamo_json    
{ 
      updated_at: { N: '146548182' },
      uuid: { S: 'foo' },
      status: { S: 'new' }
}

// to_regular_json
{ updated_at: 146548182, uuid: 'foo', status: 'new' }

// back_to_dynamo_json
{
   updated_at: { N: '146548182' },
   uuid: { S: 'foo' },
   status: { S: 'new' }
}