Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

python json string to object

import json

x =  '{ "name":"John", "age":30, "city":"New York"}'
y = json.loads(x)

print(y["age"]) 
 
PREVIOUS NEXT
Tagged: #python #json #string #object
ADD COMMENT
Topic
Name
7+4 =