How to deserialize only child object
I have a json structure and I need only
studiableItems
data. How can I deserialize only it without creating classes for parent items?
7 Replies
C# Online Compiler | .NET Fiddle
Test your C# code online with .NET Fiddle code editor.
Using System.Text.Json.Nodes or you can use another json package but I like this syntax
or use records for the entire structure and deserialize
they didnt want to do that
because stringly typed is... still typed.
I dont see how
jsonNode["props"]["pageProps"]["dehydratedReduxStateKey"]["studyModesCommon"]["studiableData"]["studiableItems"];
is betterThank you