Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reading the JSON from a JSON object

# reading the JSON from a JSON object
import json
json_object_string = """{
    "id": "123",
    "name": "John Doe",
    "occupation": "Farmer"
}
"""
data_dict = json.loads(json_object_string)
print(data_dict)
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #reading #JSON #JSON #object
ADD COMMENT
Topic
Name
7+9 =