© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
15 replies
PhantomRow

❔ Deserialize Object that can have both Array and Object structure

I provided example fiddle, please help me to figure this out.
link attribute can have both [{},{},{}] structure or {} structure. I'm trying from json string deserialize to object.
https://dotnetfiddle.net/ikXhPf

https://dotnetfiddle.net/sDwJeO (same)
Thank you! 🙂
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

❔ deserialize json object which should be an array
C#CC# / help
4y ago
Deserialize wrapper object in route
C#CC# / help
4y ago