Formatting DynamoDB data to normal JSON in AWS Lambda in Rust

221 Views Asked by At

How can I convert a DynamoDB view JSON to a normal JSON in Rust?

For example, I want to convert:

{
 "id": {
  "N": "123"
 },
 "name": {
  "S": "some name"
 }
}

to this:

{
 "id": 123,
 "name": "some name"
}

I've found this question Formatting DynamoDB data to normal JSON in AWS Lambda with several answers for Node.js or Python.

Is there a converter like unmarshall (JavaScript) or TypeDeserializer.deserialize (Python) for Rust in the aws-sdk-rust?

0

There are 0 best solutions below