title: json request change the json structure in aws lambda
body: <p>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:</p>
  
  <pre><code>Data=[['1700','340','2040']]
  </code></pre>
  
  <p>and pass it to <code>lambda</code> 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. </p>
  
  <p>json data in test event:</p>
  
  <pre><code>{
      "sum_net": 1700,
      "sum_tax": 340,
      "sum_gross": 2040
  }
  </code></pre>
  
  <p>Handler function:</p>
  
  <pre><code>def handler(event,extract)
  
  data= event.values()
  
  return 
  </code></pre>
  
  <p>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<br>
  Thank you in advance. </p>