Python JSON

import json

data = {
    "name": "John",
    "age": 30,
    "city": "New York",
    "isStudent": False,
    "courses": ["Math", "Science"]
}

json_string = json.dumps(data)
print(json_string)

json_string = '{"name": "John", "age": 30, "city": "New York", "isStudent": false, "courses": ["Math", "Science"]}'

data = json.loads(json_string)
print(data)