put_contents( $file_path, $json_data, FS_CHMOD_FILE ); } } // Example usage $data = ['status' => 'success', 'message' => 'Debugging info saved'];