Answers for "make json from python dic"

2

python dict to json

# app.py

import json

appDict = {
  'name': 'messenger',
  'playstore': True,
  'company': 'Facebook',
  'price': 100
}
app_json = json.dumps(appDict)
print(app_json)
Posted by: Guest on June-04-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language