79531940

Date: 2025-03-24 19:12:05
Score: 0.5
Natty:
Report link

You can also deserialize to System.Text.Json.Nodes.JsonObject which supports indexers, allowing you to access any property:

var json = """{ "token": "ab123" }""";
var jsonObj = JsonSerializer.Deserialize<JsonObject>(json);
var token = y?["token"]?.GetValue<string>();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Thowk