Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • You are on the right path, have you ever tried to use NewtonJson to deserialize your son object? Commented Aug 20, 2020 at 12:52
  • I have tried to serialize the whole json var createRequest = CreateRequest.FromJson(jsonString) But how do i dynamically get the UserRequest property name? It can be any name. For example - UserRequest::567, UserRequest::568 and so on. Commented Aug 20, 2020 at 12:54
  • are you talking about to deserialize a dynamic json string? Commented Aug 20, 2020 at 12:57
  • Yes. How for example i should read the code/message and other properties if my UserRequest is dynamic? Commented Aug 20, 2020 at 12:58
  • 1
    Use Dictionary. Commented Aug 20, 2020 at 14:52