code: def save_json(dictionary, path, pretty=False, sortkeys=False):
      with open(path, 'w') as f:
          if pretty:
              indent = 2
              separators = (',', ': ')
          else:
              indent = None
              separators = (', ', ': ')
          json.dump(dictionary, f, indent=indent, sort_keys=sortkeys, separators=separators)