Skip to content
| Marketplace
Sign in
Visual Studio>Tools>PasteFromJsonToClassObject
PasteFromJsonToClassObject

PasteFromJsonToClassObject

Vlad Gaman

|
754 installs
| (1) | Free
Pastes Json from clipboard as C# classes
Download

This is used to paste a text from clipboard as c# classes, using Right Click or Ctrl+Shift+J:

PasteJsonLocation__1.png

By default it will generate any class type as nullable and all properties will be generated using PascalCase e.g.

"somePropertyObject": {
   "someString": "aString",
   "someInt": 10
}

will be converted to

...
public SomePropertyObject? SomePropertyObject { get; set; }
...
public class SomePropertyObject 
{
    public string? SomeString{ get; set; }
    public int SomeInt { get; set; }
}
...

However there is an options page to have more control over how the code is generated.

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