Hi I have a Json body that can either send over a list vs a string. Right now I have it set to just capture a string "type"
public class PackageInformation{
public String location {get;set;}
pubic string type {get;set;}
public string name [get;set;}
but sometimes the json body comes over as a list of "type" which I would need to create an object for it like this:
public class PackageInformation{
public String location {get;set;}
pubic List<type> types {get;set;}
public string name [get;set;}
How can I write my class to parse my json body if it comes either as a string or a list?