title: dictionary returned different format after using dict.get() in Python udf
body: <p>I have a dictionary like below:</p>
  <pre><code>{&quot;field&quot;:{&quot;check_list&quot;:[{&quot;order_list&quot;:[{&quot;item_list&quot;:[{&quot;type&quot;:&quot;new&quot;,&quot;make&quot;:&quot;usa&quot;}]}]}]}}
  </code></pre>
  <p>I have functions which takes in the dictionary (the parameter &quot;data&quot;) and search inside the dicionary to return the item_list:</p>
  <pre><code>def get_order_list(data):
      order_list = []
      for i in data.get(&quot;field&quot;, {}).get(&quot;check_list&quot;, []):
          order_list=i.get(&quot;order_list&quot;,[])
      
      return order_list
  
  
  def get_item_list(data):
      #get order list first
      order_list =get_order_list(data)
  
      item_list=[]
      
      for j in order_list:
          item_list=j.get(&quot;item_list&quot;,[])
          
      
      return item_list
  </code></pre>
  <p>My desired output is like this:</p>
  <pre><code>   [{&quot;type&quot;:&quot;new&quot;,&quot;make&quot;:&quot;usa&quot;}]
  </code></pre>
  <p>But what I got from the &quot;get_item_list&quot; funcion is like below:</p>
  <pre><code>   [{type=new,make=usa}]
  </code></pre>
  <p>Why does the dictionary format get changed here?<br />
  What should I do to just get the exact value of the key&quot;item_list&quot;?</p>