I have a webhook that is failing and the error message inside the log file is such:
Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: S. Path 'paymentMetaJson', line 1, position 218.
   at bool Newtonsoft.Json.JsonTextReader.ParsePostValue(bool ignoreComments)
   at bool Newtonsoft.Json.JsonTextReader.Read()
   at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, string id)
   at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
   at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, object existingValue)
   at object Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, bool checkAdditionalContent)
   at object Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at object Newtonsoft.Json.JsonConvert.DeserializeObject(string value, Type type, JsonSerializerSettings settings)
   at Dictionary<string, object> PayStar.Core.Features.Jobs.Tasks.InitiateFunctionOrchestration.MapConfigurationValues(Dictionary<string, object> item, IJobExecution execution) in C:/agent/_work/1/s/server/src/PayStar/PayStar.Core/Features/Jobs/Tasks/InitiateFunctionOrchestration.cs:line 132
   at string PayStar.Core.Features.Jobs.Tasks.InitiateFunctionOrchestration.GetConfiguredPayload(FunctionOrchestration orchestration, IJobExecution execution) in C:/agent/_work/1/s/server/src/PayStar/PayStar.Core/Features/Jobs/Tasks/InitiateFunctionOrchestration.cs:line 116
   at ProcessWebhookDto PayStar.Core.Features.Jobs.Tasks.InitiateFunctionOrchestration.GetFunctionRequest(FunctionTriggerDetails triggerDetails, IJobExecution execution) in C:/agent/_work/1/s/server/src/PayStar/PayStar.Core/Features/Jobs/Tasks/InitiateFunctionOrchestration.cs:line 87
   at async Task<(ProcessWebhookDto functionRequest, FunctionTriggerDetails details)> PayStar.Core.Features.Jobs.Tasks.InitiateFunctionOrchestration.ConfigureFunctionRequestAsync(IJobExecution execution) in C:/agent/_work/1/s/server/src/PayStar/PayStar.Core/Features/Jobs/Tasks/InitiateFunctionOrchestration.cs:line 77
   at async Task PayStar.Core.Features.Jobs.Tasks.InitiateFunctionOrchestration.Process(IJobExecution execution) in C:/agent/_work/1/s/server/src/PayStar/PayStar.Core/Features/Jobs/Tasks/InitiateFunctionOrchestration.cs:line 56
   at async Task PayStar.Core.Features.Jobs.Execution.JobExecutionTask<T>.Run(IJobExecution execution) in C:/agent/_work/1/s/server/src/PayStar/PayStar.Core/Features/Jobs/Execution/JobExecutionTask.cs:line 61


So I went and pulled the payload to see the PaymentMetaJson field to see if I could locate the issue. Here is the paymentMetaJson:
{
    "AccountNumber": "3617843617841",
    "CustomerNumber": "3617841",
    "ValidAccount": true,
    "CustAcctNumber": "3617843617841",
    "CustomerName": "RALLY\"S HAMBURGER",
    "PhoneNumber": "8132837275",
    "ServiceAddress": "1875 BARATARIA BLVD",
    "AccountStatus": "A",
    "DueDate": "2024-01-16T06:00:00",
    "CurrentBalance": "11.53",
    "CurrentArrears": ".00",
    "ShutoffFlag": false,
    "AllowCredit": true,
    "AllowACH": true,
    "AllowExtension": true,
    "Paperless": "true",
    "AllowPaymentPlan": false,
    "PPDownPayment": ".00",
    "PPPaymentAmount": ".00",
    "PPPaymentNumber": "",
    "AllowDueDateExtension": "Y",
    "PastDueAmountMinor": 0,
    "FormattedArrears": "$0.00",
    "ShutoffForNonPayment": "N",
    "AllowPaymentPlanMapped": "N",
    "Id": 1606619,
    "AutopaySettingsId": null,
    "IsArchived": false,
    "AccountSyncDate": "2024-01-10T13:10:07.1722273",
    "BlockedByAllPaymentTypes": false,
    "AccountLocked": false,
    "BusinessUnitId": 339,
    "SubAccountNumber": "",
    "Balance": 1153,
    "LateFee": 0,
    "Name": "RALLY\"S HAMBURGER",
    "Description": null,
    "EmailAddress": "AirMR50280@engieinsight.com",
    "Address": {
        "StreetAddress": "1875 BARATARIA BLVD",
        "StreetAddress2": null,
        "City": null,
        "State": null,
        "ZipCode": null
    },
    "IssueDate": null,
    "Note": null,
    "Meta": "{\"AccountNumber\":\"361784\",\"CustomerNumber\":\"3617841\",\"ValidAccount\":true,\"CustAcctNumber\":\"3617843617841\",\"CustomerName\":\"RALLY\\\"S HAMBURGER\",\"PhoneNumber\":\"8132837275\",\"ServiceAddress\":\"1875 BARATARIA BLVD\",\"AccountStatus\":\"A\",\"DueDate\":\"2024-01-16\",\"CurrentBalance\":\"11.53\",\"CurrentArrears\":\".00\",\"ShutoffFlag\":false,\"AllowCredit\":true,\"AllowACH\":true,\"AllowExtension\":true,\"Paperless\":\"true\",\"AllowPaymentPlan\":false,\"PPDownPayment\":\".00\",\"PPPaymentAmount\":\".00\",\"PPPaymentNumber\":\"\",\"AllowDueDateExtension\":\"Y\",\"PastDueAmountMinor\":0,\"FormattedArrears\":\"$0.00\",\"ShutoffForNonPayment\":\"N\",\"AllowPaymentPlanMapped\":\"N\"}",
    "CreateMethod": "Api",
    "AllowOnlinePayment": true,
    "BlockCreditCardPayment": false,
    "BlockAchPayment": false,
    "PaperlessBilling": true,
    "PaymentDescriptor": "3617843617841",
    "__LineItems": [
        {
            "PaymentSession": null,
            "Account": null,
            "Product": null,
            "Id": 0,
            "PaymentSessionId": 0,
            "LineItemType": "AccountBalance",
            "Description": "Account Balance",
            "Price": {
                "Value": 1153,
                "Code": "USD"
            },
            "AccountId": 1606619,
            "ProductId": null
        }
    ]
}