hadashiA / NoJsonSchema
PublicGenerate C# types and a zero-dependency UTF-8 JSON parser/emitter from JSON Schema.
NoJsonSchema is a code generator for C# developers who work with JSON data following a published specification. You point it at a JSON Schema document (Draft 2020-12, Draft-07, or OpenAPI 3.x), and it generates C# types and UTF-8 JSON parsers/emitters that have zero runtime dependencies—just the basic .NET libraries. The generated code is optimized for speed and memory efficiency, making it suitable for high-performance applications, Native AOT compilation, Unity games using IL2CPP, and projects that need trimming-safe code. You can integrate it as a build-time source generator or use a standalone command-line tool.
How It Works
You're building a C# project and need to work with data that follows a published JSON structure, like an API standard or industry specification.
You find a tool that can read your JSON specification and automatically create matching C# types, plus all the code needed to read and write JSON data.
The tool creates C# types and JSON handlers at build time. Everything the generated code needs is built into .NET itself - no third-party libraries to install or maintain.
Add the package to your project, point it at your schema files, and code appears when you build.
Run a simple command to generate C# files into a folder, useful for bulk generation or vendoring the output.
The generated code is optimized for speed and uses very little memory. It works in constrained environments where other approaches might struggle.
You write C# code using the generated types, call a simple Serialize or Deserialize method, and your app smoothly reads and writes JSON data that matches your specification.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.