import json
# A JSON string must use double-quotes.
# ... We place the JSON data inside single-quotes here.
result = json.loads('[
"bird",
"frog",
"fish", [10, 9, 8]]')
# Print the resulting list.
print(result)
print(
"List length:", len(result))
# Get the sub list from the parsed JSON.
sublist = result[3]
print(sublist)
print(
"Sublist length:", len(sublist))
['bird', 'frog', 'fish', [10, 9, 8]]
List length: 4
[10, 9, 8]
Sublist length: 3