Question: how to use json in python?
Answer: Python has a JSON module that will help converting the datastructures to JSON strings. Use the import function to import the JSON module. The JSON module is mainly used to convert the python dictionary above into a JSON string that can be written into a file.