C#C
C#2y ago
SWEETPONY

✅ How to get value from json object by path?

I have this in json:
 "Patterns": {
    "EventName": "eventInfo.name",
    "EventTaskId": "eventInfo.id"
 }


Than I just do this:
var patterns = configuration
   .GetRequiredSection(nameof(Patterns))
   .Get<Patterns>();   


and all I need no is get information from json using this patterns.
how can I do it?
Was this page helpful?