Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

json payload python function

import json
json_string = '{"name":"Rupert", "age": 25, "desig":"developer"}'
print type (json_string)
def func(strng):
    a =json.loads(strng)
    print type(a)
    for k,v in a.iteritems():
           print k,v
    print dict(a)      
func(json_string)
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #json #payload #python #function
ADD COMMENT
Topic
Name
5+7 =