JSON Class Generator Extension

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:
- VS Code Integration: Simple command to open the generator from the command palette.
Getting Started
Prerequisites
Installation
Install directly from the Visual Studio Code Marketplace:
- Open the Extensions sidebar in VS Code (
Ctrl+Shift+X ).
- Search for
JSON Class Generator .
- Click Install.
Or, visit the Marketplace page and click Install.
Usage
- Open a JSON file in VS Code.
- Open the command palette (
Ctrl+Shift+P or Cmd+Shift+P ).
- Type
JSON: Format & Generate Classes and select the command.
- 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
| |