Python Programming - Standard Libraries - Discussion

Discussion Forum : Standard Libraries - General Questions (Q.No. 5)
5.
What is the purpose of the json.dumps() function?
Reads JSON data from a file
Decodes JSON data
Encodes Python objects into JSON format
Validates JSON syntax
Answer: Option
Explanation:
The json.dumps() function is used to encode Python objects into a JSON-formatted string, allowing you to serialize data for storage or transmission.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.