I'm migrating code from .Net Framework to Core and without getting into the reason why I want to do this, I'll just keep it simple and focus on what I want to do.
Let's say I have a jsonString that contains "Name". I parse the string with:
JsonNode jn = JsonNode.Parse(jsonString);
And the get the value with:
string name = jn["Name"].ToString();
How can I override, extend, whatever so I don't have to use the .ToString() part and retrieve a JsonNode element value like:
string name = jn["Name"];