Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON Class GeneratorNew to Visual Studio Code? Get it now.
JSON Class Generator

JSON Class Generator

Suvankar Thakur

|
3 installs
| (1) | Free
View JSON tree and generate C#, Java, TypeScript classes from JSON inside VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Class Generator Extension

VS Code Marketplace

View JSON tree and generate C#, Java, TypeScript classes from JSON inside VS Code.

Features

  • Visualize JSON: Quickly view JSON structures as an interactive tree.
  • Generate Classes: Instantly generate class definitions from JSON for:
    • C#
    • Java
    • TypeScript
  • VS Code Integration: Simple command to open the generator from the command palette.

Getting Started

Prerequisites

  • Visual Studio Code version 1.60.0 or newer.

Installation

Install directly from the Visual Studio Code Marketplace:

  1. Open the Extensions sidebar in VS Code (Ctrl+Shift+X).
  2. Search for JSON Class Generator.
  3. Click Install.

Or, visit the Marketplace page and click Install.

Usage

  1. Open a JSON file in VS Code.
  2. Open the command palette (Ctrl+Shift+P or Cmd+Shift+P).
  3. Type JSON: Format & Generate Classes and select the command.
  4. View the JSON as a tree and generate class code in your desired language.

Commands

  • JSON: Format & Generate Classes (jsonClassGenerator.open): Launch the main generator interface.

Development

  • Clone this repository
  • Install dependencies: npm install
  • Build: npm run compile
  • Watch: npm run watch
  • Press F5 to launch the extension in a new Extension Development Host window

Contributing

Feel free to submit issues or pull requests to improve functionality or add new features.

License

MIT License


Author: sthakur-dotnet

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft