Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 67)
67.
What is the purpose of the json module?
Working with binary data
Parsing JSON data
Handling dates and times
Sorting elements in a list
Answer: Option
Explanation:
import json

# Example usage of json module for parsing JSON data
json_data = '{"name": "John", "age": 30, "city": "New York"}'
parsed_data = json.loads(json_data)
print(parsed_data)
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.