1. Home
  2. Data Science
  3. Python
  4. What does json.loads() do in Python?

Added 25 Nov 2026

What does json.loads() do in Python?

  1. Parses a JSON string into a Python object Correct answer
  2. Writes JSON to a file
  3. Loads a file from disk
  4. Validates JSON only

Correct answer

A. Parses a JSON string into a Python object

5 views

MCQSEXAM

Explanation

loads (load string) converts JSON text to Python data.

Reference

Asked in: Python Interview File Handling

https://docs.python.org/3/tutorial/inputoutput.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs