converts dictionary to json file
converts dictionary to json file