Custom Class Serialization
Is it possible to use a custom JSON serializer on a class?
For example, I have a class with a few properties (Member), and another class with the class "Member" as a child property. I want the JSON serializer (Microsoft's version,
System.Texts.Json
) to serialize the entire Member class as just a string.
Anyone know how this is done/if it can be done?
Thanks.
4 Replies
Thanks
Any idea what could be causing this?
![](https://utfs.io/f/22eb115a-3dc7-4054-b1c4-9f78263273e8-4pl4mu.png)
Apparently it's not supported in Visual Basic :(
![](https://utfs.io/f/75d67da1-6178-4392-9e71-a2090a72d083-4pl4mu.png)
Funny cause like the rest of the language is totally chill with everything else C#. Oh well, guess I'll have to find another way or look at Newtonsoft.
Thanks again 👋