© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
35 replies
MagicJinn

Force Newtonsoft to deserialize into certain formats

I've been using JsonFx for a bit now and am trying to migrate away to Newtonsoft, but the biggest problem I've faced is that when you deserialize into Dictionary<string,object>, and the object is another nested object, it'll become a JObject. Is there any easy way to force Newtonsoft to deserialize T or List<T> (depending on the data), instead of JObject for all nested objects?
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

Newtonsoft.Json deserialize issue [Answered]
C#CC# / help
4y ago
How to deserialize dictionary using Newtonsoft [Answered]
C#CC# / help
4y ago
Deserialize JSON to dynamic object without Newtonsoft.Json
C#CC# / help
4y ago
NewtonSoft Deserialize Not Working Properly In API Controller
C#CC# / help
7mo ago