Search
 
SCRIPT & CODE EXAMPLE
 

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)
Comment

PREVIOUS NEXT
Code Example
Python :: mergesort python 
Python :: add columns not in place 
Python :: .lstrip() 
Python :: Example of ceil method in python 
Python :: how can you know if a year is a leap year 
Python :: swapping variables 
Python :: python ON DUPLICATE KEY UPDATE 
Python :: mixpanel export api 
Python :: how to make a random number generator in python 
Python :: two underscores python 
Python :: Python Pandas - How to write in a specific column in an Excel Sheet 
Python :: r vs python 
Python :: how to perform group by with django orm 
Python :: use a library in python 
Python :: Default stride value in keras 
Python :: python inline if 
Python :: python raise filenotfounderror 
Python :: how to for loop in python stackoverflow 
Python :: python how to exit function 
Python :: char list python 
Python :: check boolean python 
Python :: set default palette seaborn 
Python :: pyqt graph 
Python :: python delete key if exists 
Python :: what does the combinations itertools in python do 
Python :: recurrent neural network pytorch 
Python :: Implement a binary search of a sorted array of integers Using pseudo-code. 
Python :: discord py server.channels 
Python :: django create multiple objects 
Python :: discord py join and leave call 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =