© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
54 replies
Nael4Slayer

How to get these values from the dynamic json object ?

I wanna assign the values for id and password to strings so I'll have something to work with after this stage.
Some code I already tired:
var nameOfProperty = "id";
var propertyInfo = myObject.GetType().GetProperty(nameOfProperty);

var id = jsonObject.id.ToString();

var id = Convert.ToString(jsonObject["id"]);
unknown.png
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
Next page

Similar Threads

✅ How to get value from json object by path?
C#CC# / help
3y ago
Deserialize JSON to dynamic object without Newtonsoft.Json
C#CC# / help
4y ago
How to Deserialize dynamic types from json
C#CC# / help
4mo ago
❔ problem loading json into dynamic object
C#CC# / help
3y ago