© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
SWEETPONY

✅ How to get value from json object by path?

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


Than I just do this:
var patterns = configuration
   .GetRequiredSection(nameof(Patterns))
   .Get<Patterns>();   
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Get value out of deserialized json object.
C#CC# / help
3y ago
How to get these values from the dynamic json object ?
C#CC# / help
4y ago
❔ ✅ How to get true properties from object?
C#CC# / help
3y ago