import json
"""
json字符串生成json对象
"""


str = '''
[{
    "name": "Bob",
    "gender": "male",
    "birthday": "1992-10-18"
}, {
    "name": "Selina",
    "gender": "female",
    "birthday": "1995-10-18"
}]
'''
print(type(str))
data = json.loads(str)
print(data)
print(type(data))
import json
"""
json字符串生成json对象
"""


str = '''
[{
    "name": "Bob",
    "gender": "male",
    "birthday": "1992-10-18"
}, {
    "name": "Selina",
    "gender": "female",
    "birthday": "1995-10-18"
}]
'''
print(type(str))
data = json.loads(str)
print(data)
print(type(data))
json字符串生成json对象 [{     "name": "Bob",     "gender": "male",     "birthday": "1992-10-18" }, {     "name": "Selina",     "gender": "female",     "birthday": "1995-10-18" }]