Write a Python script to parse a JSON string and convert it into a dictionary.
'{"name": "GPT", "type": "AI"}'
import json

json_str = '{"name": "GPT", "type": "AI"}'

dict_x = json.loads(json_str)
print(dict_x)