Handling JSON string in python -


i have string example

var = "{"name":"angelo","apellido":"enriquez"}" 

but when doing following function error

data = json.loads(var) 

error : no json object decoded help?

replace var :

var = '{"name":"angelo","apellido":"enriquez"}' 

i.e put content inside {} within single quotes (') instead of double .

hope helps .


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -