data = {"key1" : "value1", "key2" : "value2"}
Expected Output:
Solution:
import json data = {"key1" : "value1", "key2" : "value2"} jsonData = json.dumps(data) print(jsonData)
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer