code: def build_result(data):
      
      more = {}
      for key, value  in data.items():
          if key != 'elements':
              newnode = value
          else:
              newnode = {}
              for el in value:
                  nkey, nvalue = process_node(el)
                  newnode[nkey] = nvalue
  
          more[key] = newnode
  
      return more
docs: Create a dictionary with the contents of result.json