Direction: Choose the correct option
Q1.
Which module is used for JSON handling in Python?
Direction: Choose the correct option
Q2.
What does `json.loads()` do?
Direction: Choose the correct option
Q3.
How do you convert a Python dictionary to a JSON string?
Direction: Choose the correct option
Q4.
What does `json.load()` do?
Direction: Choose the correct option
Q5.
What is the output of `json.dumps({'a':1})`?
Direction: Choose the correct option
Q6.
How do you write a Python object to a JSON file?
Direction: Choose the correct option
Q7.
What is the Python type of a JSON array after `loads()`?
Direction: Choose the correct option
Q8.
How do you handle non-serializable objects like datetime?
Direction: Choose the correct option
Q9.
What does `json.dumps(obj, indent=2)` do?
