Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Python JSON

# Python program showing
# use of json package
 
import json
 
# {key:value mapping}
a ={"name":"John",
   "age":31,
    "Salary":25000}
 
# conversion to JSON done by dumps() function
 b = json.dumps(a)
 
# printing the output
print(b)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Python #JSON
ADD COMMENT
Topic
Name
9+5 =