title: python, How to find specific key value in json file then save whole line of json file？
body: <p>I am a newbie and I need to export specific key value in json file,I searched a lot of sites but couldn't find the code I need, hope this helps me</p>
  <p>my json file</p>
  <pre><code>
  {&quot;person&quot;:{&quot;name&quot;:&quot;Silva&quot;,&quot;sex&quot;:&quot;female&quot;,&quot;age&quot;:21}}
  {&quot;person&quot;:{&quot;name&quot;:&quot;LANA&quot;,&quot;sex&quot;:&quot;male&quot;,&quot;age&quot;:28}}
  {&quot;person&quot;:{&quot;name&quot;:&quot;Oliveira&quot;,&quot;sex&quot;:&quot;female&quot;,&quot;age&quot;:35}}
  {&quot;person&quot;:{&quot;name&quot;:&quot;KENN&quot;,&quot;sex&quot;:&quot;male&quot;,&quot;age&quot;:26}}
  
  </code></pre>
  <p>Need to export whole line json file where 'sex' is 'male' in JSON file</p>
  <pre><code>{&quot;person&quot;:{&quot;name&quot;:&quot;LANA&quot;,&quot;sex&quot;:&quot;male&quot;,&quot;age&quot;:28}}
  {&quot;person&quot;:{&quot;name&quot;:&quot;KENN&quot;,&quot;sex&quot;:&quot;male&quot;,&quot;age&quot;:26}}
  
  </code></pre>
  <p>full code required</p>