title: How do I convert json string to key\value pairs?
body: <p>I want to take all the key-value pairs after the \"<strong>tags</strong>\" under "<strong>instanceData</strong>" and make them key-value pairs under "<strong>properties</strong>".</p>
  
  <p>I have this...</p>
  
  <pre><code>{
    "id": "/subscriptions/1234abcd-ab12-12ab-12ab-abcdfghi1234/Daily_BRSDT_20161214_0000",
    "name": "Daily_BRSDT_20161214_0000",
    "type": "Microsoft.Commerce/UsageAggregate",
    "properties": {
      "subscriptionId": "1234abcd-ab12-12ab-12ab-abcdfghi1234",
      "usageStartTime": "2017-03-08T00:00:00+00:00",
      "usageEndTime": "2017-03-09T00:00:00+00:00",
      "meterName": "Standard IO - File Read Operation Units (in 10,000s)",
      "meterCategory": "Data Management",
      "unit": "10,000s",
      "instanceData": "{\"Microsoft.Resources\":{\"resourceUri\":\"/subscriptions/1234abcd-ab12-12ab-12ab-abcdfghi1234/resourceGroups/default-resource-group67/providers/Microsoft.Storage/storageAccounts/defaultstorage67\",\"location\":\"ussouthcentral\",\"tags\":{\"ProjectName\":\"default Portal\",\"billTo\":\"Technology\",\"component\":\"Persistant Storage\",\"department\":\"Technology\",\"displayName\":\"default Portal Storage Account\",\"enviornment\":\"default\",\"function\":\"Reporting\",\"matterNumber\":\"999999\",\"primaryowner\":\"john@internet.com\",\"productLine\":\"Information Components\",\"secondaryowner\":\"mary@internet.com\",\"version\":\"1.0.0.0\"}}}",
      "meterId": "12345ab-259d-4206-a6ae-12345678abcd",
      "infoFields": {},
      "quantity": 0.0004
    }
  }
  </code></pre>
  
  <p>I want this...</p>
  
  <pre><code>{
    "id": "/subscriptions/1234abcd-ab12-12ab-12ab-abcdfghi1234/Daily_BRSDT_20161214_0000",
    "name": "Daily_BRSDT_20161214_0000",
    "type": "Microsoft.Commerce/UsageAggregate",
    "properties": {
      "subscriptionId": "1234abcd-ab12-12ab-12ab-abcdfghi1234",
      "usageStartTime": "2017-03-08T00:00:00+00:00",
      "usageEndTime": "2017-03-09T00:00:00+00:00",
      "meterName": "Standard IO - File Read Operation Units (in 10,000s)",
      "meterCategory": "Data Management",
      "unit": "10,000s",
      "instanceData": "{\"Microsoft.Resources\":{\"resourceUri\":\"/subscriptions/1234abcd-ab12-12ab-12ab-abcdfghi1234/resourceGroups/default-resource-group67/providers/Microsoft.Storage/storageAccounts/defaultstorage67\",\"location\":\"ussouthcentral\"}}",
      "ProjectName":"default Portal",
      "billTo":"Technology",
      "component":"Persistant Storage",
      "department":"Technology",
      "displayName":"default Portal Storage Account",
      "enviornment":"default",
      "function":"Reporting",
      "matterNumber":"999999",
      "primaryowner":"john@internet.com",
      "productLine":"Information Components",
      "secondaryowner":"mary@internet.com",
      "version":"1.0.0.0",
      "meterId": "12345ab-259d-4206-a6ae-12345678abcd",
      "infoFields": {},
      "quantity": 0.0004
    }
  }
  </code></pre>
  
  <p>Is there a simple way to convert this? I am attempting to do this with RegEx with no luck.</p>