Csharp json

From yappologistic/CSharp-Tutor · View interactive version

Csharp json is an AI agent skill from the GitHub repository yappologistic/CSharp-Tutor. Teach and review JSON serialization and deserialization in C#. Use for System.Text.Json, DTOs, records, JSON persistence, reading/writing JSON files, JsonSerializer, nullable deserialization results, options, property naming, dates, decimals, enums, and common beginner JSON issues.

How to use this skill

Skill file

C# JSON

Use $csharp-tutor mode=json.

Treat all user text after $csharp-json as the C# JSON, serialization, deserialization, DTO, or persistence question. Use the main csharp-tutor skill as the source of truth.

Load these csharp-tutor references when useful:

Explain serialization with small examples and show how to inspect restored values. Warn about null results, untrusted input, and mixing persistence with domain logic.

Decision rules:

For debugging, ask for the JSON payload, target type, serializer options, and exact exception or restored value. For fixes, show a minimal DTO/options change and one small verification snippet.

Standalone Guidance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.