What does json.dumps() return in Python?
Correct answer
C. A JSON-formatted string
10 views
C. A JSON-formatted string
10 views
dumps serialises a Python object into a string; dump writes to a file.
Asked in: Python Interview File Handling
https://docs.python.org/3/tutorial/inputoutput.htmlNot sure why the answer is C? Ask here and get an explanation.