1import json
2
3studentJson ="""{
4 "id": 1,
5 "name": "john wick",
6 "class": null,
7 "percentage": 75,
8 "email": "jhon@pynative.com"
9}"""
10student = json.loads(studentJson)
11if not (student.get('email') is None):
12 print("value is present for given JSON key")
13 print(student.get('email'))
14else:
15 print("value is not present for given JSON key")