正解:D
Reference:
In Python, the json.loads() function parses a JSON string and converts it into a Python data structure. The JSON string provided in the exhibit is:
{
"researcher": {
"name": "Ford Perfect",
"species": "Betelgeusian",
"relatives": [
{
"name": "Zaphod Beeblebrox",
"species": "Betelgeusian"
}
]
}
}
When this JSON string is loaded using json.loads(), it is converted into a Python dictionary (dict). The structure will be:
{
"researcher": {
"name": "Ford Perfect",
"species": "Betelgeusian",
"relatives": [
{
"name": "Zaphod Beeblebrox",
"species": "Betelgeusian"
}
]
}
}
Therefore, my_json will contain a dictionary (dict).