title: dictionary reconstruction format from old dictionary data
body: <p>I have a dictionary below </p>
  
  <pre><code>dict1 = {'index': 88260', 'host': 'digital.net', 'source': '11-02.txt', '_time': '2018 9:00 EDT', 'count': '1'}
  </code></pre>
  
  <p>Is it a way to reconstruct to a new dictionary?</p>
  
  <pre><code>{
   "name1": {
      "index": "88260",                
      "host": "digitalnet"
   },
   "time": '2018 9:00 EDT',
   "name2": {                    
      "source": '11-02.txt'
   },
   "metricName": "test 1",   
   "count_value": 1,
   "metricType": "count"              
  } 
  </code></pre>
  
  <p>so far I only can get the name1 part which is </p>
  
  <pre><code>d1_items = list(dict1.items())
  
  dic2={"name1":{k: v for k, v in d1_items[0:2]}}
  </code></pre>
  
  <p>What will be the next steps?</p>