Nathan Wright's Personal Website


Recent Posts


Reaching level 50 in Elder Scrolls Online

After about half a year of casually playing Elder Scrolls Online and creating many different character/class combos, I've finally reached level fifty on the class that I care about using as my main: a high elf sorcerer. Despite reaching the max level, there is still so much that I want to do and I feel like I’ve barely scratched the surface of this game’s lore and group content.


Polymorphic JSON parsing using System.Text.Json

I ran into a deserialization problem recently when trying to write a C# wrapper around the restic cli program for a project that I'm working on. Unfortunately, restic does not provide any way to consume it as a library. However, there is a command line flag that most subcommands honor that converts any and all output into a json format that can be more easily consumed by other programs. Here is some helpful documentation on the output format of many common commands. Say, for example, that we want to parse the output of a backup subcommand. There are several different "message_type"s that are written to stdout depending on which stage the backup process is in.