Json2CSharp / Json2CSharpCodeGenerator

Microsoft Reciprocal License
292 stars 81 forks source link

Decorate classes with [Serializable] #83

Open jwvanderbeck-Unity opened 1 year ago

jwvanderbeck-Unity commented 1 year ago

This is a wonderful tool and free at that so I hate to make a feature request, but if it would be trivial to add it would be great if there was a settings option to decorate each generated class with [Serializable]. This would allow the code to be used directly in Unity projects using the built in Json parsers.

Json2CSharp commented 1 year ago

We can add a generic "Decorate Classes With : " and a text input so you can copy paste whatever attribute you want. Sure its feasible thanks for the idea