Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictionary to json

import json

appDict = {
  'name': 'messenger',
  'playstore': True,
  'company': 'Facebook',
  'price': 100
}
app_json = json.dumps(appDict)
print(app_json)
 
PREVIOUS NEXT
Tagged: #python #dictionary #json
ADD COMMENT
Topic
Name
6+3 =