title: How can I delete an item from a json using the below method?
body: <p>I need to remove data from a json, at the minute i am using the following code:</p>
  
  <pre><code>import json
  with open('E:/file/timings.json', 'r+') as f:
      qe = json.load(f)
      for item in qe['times']:
          if item['Proc'] == 'APS':
              print(f'{item["Num"]}')
              del item
          json.dump(qe, f, indent=4, sort_keys=False, ensure_ascii=False)
  </code></pre>
  
  <p>This doesn't delete anything from the JSON, here is a small example of my JSON file</p>
  
  <pre><code>{
      "times": [
          {
              "Num": "12345678901234567",
              "Start_Time": "2016-12-14 15:54:35",
              "Proc": "UPD",
          },
          {
              "Num": "12345678901234567",
              "Start_Time": "2016-12-08 15:34:05",
              "Proc": "APS",
          },
          {
              "Num": "12345678901234567",
              "Start_Time": "2016-11-30 11:20:21",
              "Proc": "Dev,
  </code></pre>
  
  <p>i would like it to look like this: </p>
  
  <pre><code>{
      "times": [
          {
              "Num": "12345678901234567",
              "Start_Time": "2016-12-14 15:54:35",
              "Proc": "UPD",
          },
          {
              "Num": "12345678901234567",
              "Start_Time": "2016-11-30 11:20:21",
              "Proc": "Dev,
  </code></pre>
  
  <p>as you can see the portion containing APS as the process has been removed</p>