code: def json_write_data(json_data, filename):
      
      with open(filename, 'w') as fp:
          json.dump(json_data, fp, indent=4, sort_keys=True, ensure_ascii=False)
          return True
      return False
docs: Write json data into a file