I'm working on a point system for my twitch chat bot in C#. I need to save a list of users with their amount of points and hours to a local .txt file like this:
- users : ???
- username : ???
- nick : string
- points : int
- hours : int
- username : ???
- nick : string
- points : int
- hours : int
- username : ???
- nick : string
- points : int
- hours : int
- username : ???
I'm trying to create a .NET Object to serialize to a JSON string and write this to my .txt file but I'm stuck here.
I figure users needs to be an Array of some sort but what do I do with username? I don't think JSON supports custom types?
Thanks for your time, X3ntr