I am trying to generate ion data file manually using this library so that I can use it for DynamoDB import table, this is my DynamoDB item in python dictionary.
{
"id": 1, # this is hash key
"name": "Alice"
}
the amazon.ion.simple_ion.dumps method gives me: $ion_1_0 {Item:{id:1,name:"Alice"}}, note that there's no dot after number 1. Then the import_table API fails.
However, if I manually add the dot behind the number 1, making it to be $ion_1_0 {Item:{id:1.,name:"Alice"}}, then it works.
I also tried to export a manually createdDynamodb table and I found out that the export ION file has the dot after the integer number.
I also tried the loads method, I think the integer without dot is a valid value for deserialization. However, it doesn't work with DynamoDB table import.
How do I ensure that there's an dot after any integer in the text view of my data?