write_json.py - save json