Guest User

Untitled

a guest
Jan 12th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. [JsonObject]
  2. public class RootObject
  3. {
  4. [JsonProperty]
  5. public Profile ProfileInfo { get; set; } = new Profile();
  6.  
  7. [JsonProperty]
  8. public ImmutableList<Info> AdditionalInfo { get; set; } = ImmutableList.Create<Info>();
  9. }
  10.  
  11. var rootObject = JsonConvert.DeserializeObject<RootObject>(json);
  12.  
  13. <Type Name="System.Collections.Immutable.ImmutableList" Dynamic="Required All" />
  14.  
  15. dynamic obj = JsonConvert.DeserializeObject(rpcStatus);
  16.  
  17. dynamic obj = JsonConvert.DeserializeObject<ExpandoObject>(rpcStatus);
Add Comment
Please, Sign In to add comment