Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
4+3 =