output above we open the json file (data jsonfor readingobtain the file handler and pass on to json load and getting back the object when we try to print the output of the objectits same as the json file although the type of the object is dictionaryit comes out as python object writing to the json is simple as we saw this pickle above we load the json fileadd another key value pair and writing it back to the same json file now if we see out data jsonit looks different not in the same format as we see previously to make our output looks same (human readable format)add the couple of arguments into our last line of the programjson dump(conffhindent= separators (',''')similarly like picklewe can print the string with dumps and load with loads below is an example of that