truongleswe / export-dynamodb

Export Amazon DynamoDb to CSV or JSON
GNU General Public License v3.0
52 stars 9 forks source link

Numeric attribute values are exported as strings, not numbers #10

Open lylejohnson opened 5 years ago

lylejohnson commented 5 years ago

When I have a DynamoDB item like this:

{
  "id": "7e7e9de9-cb80-4697-bbed-b112caa34050",
  "minValue": 0,
  "maxValue": 10000,
  "readingType": "Power",
  "units": "Watts"
}

where the types of minValue and maxValue are numbers (not strings), the exported version records them as strings:

{
  "id": "7e7e9de9-cb80-4697-bbed-b112caa34050",
  "minValue": "0",
  "maxValue": "10000",
  "readingType": "Power",
  "units": "Watts"
}
sarjann commented 5 years ago

Have a fix in #11