API JSON Response, unterminated String when Parsing

I wrote a Module for a PBX which synchronizes the customers Contacts from Pipedrive with the PBX, so they can be used for resolving Calls.

Ever since the issue: Api.pipedrive.com issue with weak key strength was resolved in Code the module worked perfectly.

Now one of our customers ran into a problem.

I request Contacts via : “https://”+ServerIP+“/v1/persons?start=”+Offset+”&limit=500&api_token=”+APIKey; in Packs of 500 request further 500 with offsetting.

One of our customers seems to have some kind of Special Character in one of the contacts.

In this Customer’s case the JSON Parse now fails with Unterminated String error:

org.json.JSONException: Unterminated string at 690552 [character 690553 line 1]

I went and looked at the JSON file and the string looked normal with an exception “\u2013” in that specific String.
”Company \u2013 Name “

\u2013 stands for the “-”

So it would be Company - Name

Despite it looking correct, i let the customer remove the “-” \u2013 from the String the JSON Parsing continued a bit further.

org.json.JSONException: Unterminated string at 692007 [character 692008 line 1]

And is once again terminated. I don’t know what kind of character caused it the second time, i’m awaiting the full json file, since i cannot access the customers PBX by myself.

Looking trough the forum i haven’t found anyone with parsing issues of this kind, so i’m kinda wondering where this is coming from.

The issue started on 26. of November last year, before the Module was running fine for nearly a year.

I don’t know how i go about debugging this one.
I’m thinking the Terminations by the \ Escape Character are a red herring, and not the actual issue, but cause the parsing to stop due to an earlier issue.