0

I have a json response that may or may not contain a value called t_ID. Currently I have the following property defined in a class:

[JsonProperty("t_ID")]
public string TID { get; set; }

If it does not exist I don't want to do anything with it - if it exists in the JSON response I want to deserialize it into the class.

How can this be done?

uba2012
  • 373
  • 1
  • 3
  • 14

0 Answers0