I make a request to an external API and get JSON data back, the data returned is in the following format:
abnCallback({
    "Abn": "53660112345",
    "AbnStatus": "Active",
    "AbnStatusEffectiveFrom": "2022-06-16",
    "Acn": "660198745",
    "AddressDate": "2022-06-16",
    "AddressPostcode": "3000",
    "AddressState": "VIC",
    "BusinessName": [],
    "EntityName": "Company name pty ltd",
    "EntityTypeCode": "PRV",
    "EntityTypeName": "Private Company",
    "Gst": "2022-06-16",
    "Message": ""
})
I'm trying to map this to a model by doing the following:
var jsonString = await response.Content.ReadAsStringAsync();
var response = JsonConvert.DeserializeObject<ABRPayloadSearchResults>(jsonString);
My model looks like this:
public class ABRPayloadSearchResults
{
    public string Abn { get; set; }
    public string AbnStatus { get; set; }
    public string AbnStatusEffectiveFrom { get; set; }
    public string Acn { get; set; }
    public string AddressDate { get; set; }
    public string AddressPostcode { get; set; }
    public string AddressState { get; set; }
    public object[] BusinessName { get; set; }
    public string EntityName { get; set; }
    public string EntityTypeCode { get; set; }
    public string EntityTypeName { get; set; }
    public string Gst { get; set; }
    public string Message { get; set; }
}
The issue I have is the returned JSON has abnCallBack( at the start which is preventing the json being mapped correctly to my class, has anyone had to handle this situation before?
 
     
    