Search code examples
c#jsontypescriptecmascript-6generate

C# class to Json e6 class


I understand there is a plethora of tools out there to convert from json class / object to a C# class. Is there a way to do it the other way around? Get a C# class .. paste it in and generate a json object or typescript class?

Thanks


Solution

  • It needs two steps to do that:

    1. Convert your C# class to JSON using C#TOJSON
    2. Convert your JSON to Interface using JSON2TS