Run
import json # Given string x = '{"name": "apple", "quantity": 100}' # Convert jsong string into dictionary dictionary = json.loads(x) print(f"Dictionary\n{dictionary}")
Output