<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _write_plain_json(file_path, js):
 """ Write information to a JSON file This makes sure files are created with the proper encoding and consistent indenting Parameters file_path : str Full path to the file to write to. It will be overwritten if it exists js : dict JSON information to write """


    # Disable ascii in the json - this prevents the json writer
    # from escaping everything

    if file_path.endswith('.bz2'):
        with bz2.open(file_path, 'wt', encoding=_default_encoding) as f:
            json.dump(js, f, indent=2, ensure_ascii=False)
    else:
        with open(file_path, 'w', encoding=_default_encoding) as f:
            json.dump(js, f, indent=2, ensure_ascii=False)