Python JSON

Read and write UTF-8 JSON files with Unicode preservation in Python.

2|3|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/lawless-m/iscsi-crate --skill python-json
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Python JSON
Source: https://github.com/lawless-m/iscsi-crate/tree/main/skills/PythonJson
Command: npx skills add https://github.com/lawless-m/iscsi-crate --skill python-json

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Python on Windows often defaults to system encoding (CP-1252), causing "mojibake" (garbled characters) when reading or writing UTF-8 JSON files with non-ASCII characters. This skill provides a robust solution to prevent data corruption and eliminate time-consuming debugging related to encoding issues.

Core Features & Use Cases

  • UTF-8 JSON I/O: Ensures all JSON file operations correctly handle UTF-8, preventing encoding errors across different environments.
  • Unicode Preservation: Writes JSON with ensure_ascii=False to preserve special Unicode characters (like £, , accented letters) instead of escaping them to \uXXXX.
  • Utility Module Pattern: Promotes creating a dedicated json_io utility module to abstract encoding complexities project-wide.
  • Use Case: Seamlessly read and write JSON configuration files or data exports on Windows without worrying about character encoding issues, saving development and debugging time.

Quick Start

Help me create a Python utility to reliably read and write JSON files, ensuring UTF-8 encoding and preserving Unicode characters.