json.dumps() and json.loads() are json format processing functions (json data can be understood as strings).
The json.dumps() function is to encode a list of python data types in json format (it can be understood as the json.dumps() function is to convert the list into a string).
The json.loads() function converts data in json format into a dictionary (it can be understood as the json.loads() function converts a string into a dictionary).
json.dumps() and json.loads() are mainly used to read and write json data (or json files).