title: How to remove one property from json input message using replace() expression in azure logic app?
body: <pre><code>{
    "metadata": {
      "id": "2",
      "uri": "3",
      "type": "2"
    },
    "Number": "2323600002913",
    "Date": "04/21/2009",
    "postingDate": "00/00/0000",
    "ata": {
      "results": [
        {
          "metadata": {
            "id": "r",
            "uri": "e2",
            "type": "s2"
          },
  
          "item": "000010",
          "data":"ad"
  
        }
      ]
    }
  }
  </code></pre>
  
  <p>want to remove <code>metadata</code> property from above json message and output should be like below</p>
  
  <pre><code>{
    "Number": "2323600002913",
    "Date": "04/21/2009",
    "postingDate": "00/00/0000",
    "ata": {
      "results": [
        {
  
          "item": "000010",
          "data":"ad"
        }
      ]
    }
  }
  </code></pre>
  
  <p>I tried with <code>removeProperty()</code> which is working for root level <code>metadata</code> but inside <code>metadata</code> not removed.</p>
  
  <p>how to use replace() in this case or anything else to only remove <code>metadata</code>.</p>