import json
appDict = {
'name': 'messenger',
'playstore': True,
'company': 'Facebook',
'price': 100
}
app_json = json.dumps(appDict)
print(app_json)
import json
python_data = {'name': 'Dave', 'age': 42}
json_string = json.dumps(python_data)
json.loads(json_dict)
import json
# json -> string
j1 = {"name": "steve", "age": 64}
s1 = json.dumps(j)
# string -> json
s2 = '{"name": "steve", "age": 64}'
j2 = json.loads(s)
python dict to json