title: How to make another nested json with keys from a nested json
body: <p>The strings that are coming from source is coming in fragmented JSON object in JSON object.I want to convert this JSON structure to a another simple JSON structure:</p>
  
  <pre><code>{  
    "nestA":{  
      "a":"link",
      "b":2711
    },
    "nestB":{  
      "a":"img",
      "b":4165 
    }
  }
  </code></pre>
  
  <p>could it changed to be like</p>
  
  <pre><code> {  
       "key":"nestA"
       "a":"link"
       "b":711
   },
   {  
       "key":"nestB"
       "a":"img"
       "b":165
   }
  </code></pre>