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

my json file

```

{"person":{"name":"Silva","sex":"female","age":21}}
{"person":{"name":"LANA","sex":"male","age":28}}
{"person":{"name":"Oliveira","sex":"female","age":35}}
{"person":{"name":"KENN","sex":"male","age":26}}

```

Need to export whole line json file where 'sex' is 'male' in JSON file

```
{"person":{"name":"LANA","sex":"male","age":28}}
{"person":{"name":"KENN","sex":"male","age":26}}

```

full code required