I am new to aws Lambda, I am struggling enough to find the solution dont know what to do. I have lambda handler function. my code is designed in such a way it works with the last value only. if I pass the data inside the console like:
Data=[['1700','340','2040']]
and pass it to lambda
function. it works fine. But when I use API to pass the data as API request in configure test event and print the data , it change the json structure.
json data in test event:
{
"sum_net": 1700,
"sum_tax": 340,
"sum_gross": 2040
}
Handler function:
def handler(event,extract)
data= event.values()
return
result change the json object order. values are not the same as the manually defined dictionary. is there any way to keep the structure same.problem appears when json object changes to python dict. it changes the order of keys and values
Thank you in advance.