title: How to filter JSON Object (JavaScript)
body: <p>I am trying to filter the below JSON object and return an array of objects where the value within the key of 'markdown' contains say "steve" - to do this I suspect I need to convert the object to an  array then filter.</p>
  
  <p>I have tried using <code>Object.entries</code></p>
  
  <pre class="lang-js prettyprint-override"><code>Object.entries(diagnosisData).filter(item =&gt; item === 'steve')
  </code></pre>
  
  <p>as well as <code>JSON.parse</code> but think I am barking up the wrong tree.</p>
  
  <p>I'd like to return say:</p>
  
  <pre class="lang-js prettyprint-override"><code>result = [
    {
      "id": "stevey",
      "markdown": "STEVEY",
      "source": null
    },
    {
      "id": "steven",
      "markdown": "STEVEN",
      "source": null
    }
  ]
  </code></pre>
  
  <p>Could anyone offer a pointer for me?</p>
  
  <p>Many thanks</p>
  
  <pre class="lang-js prettyprint-override"><code>JSONdata = {
    "steven": {
      "id": "steven",
      "markdown": "STEVEN",
      "source": null
    },
    "john": {
      "id": "johnA",
      "markdown": "JOHNA",
      "source": null
    },
    "henry": {
      "id": "henryP",
      "markdown": "HENRYP",
      "source": null
    },
    "stevel": {
      "id": "steveL",
      "markdown": "STEVEL",
      "source": null
    }
  }
  </code></pre>