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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -