Explain JSON dumps() in Python with example

json.dumps() in python is a method that converts dictionary objects of python into JSON string data format. It is useful when the objects are required to be in string format for the operations like parsing, printing, etc.

Example