|
|
@ -120,6 +120,7 @@ public class BirthAndDeathDetailsService { |
|
|
|
|
|
|
|
|
// Remove illegal control characters (but keep line breaks if needed) |
|
|
// Remove illegal control characters (but keep line breaks if needed) |
|
|
return rawJson |
|
|
return rawJson |
|
|
|
|
|
.replace("\\", "\\\\") // Escape backslashes |
|
|
.replaceAll("[\\p{Cntrl}&&[^\r\n\t]]", "") // Remove non-printable control characters (except tabs/newlines) |
|
|
.replaceAll("[\\p{Cntrl}&&[^\r\n\t]]", "") // Remove non-printable control characters (except tabs/newlines) |
|
|
.replaceAll("\t", "") // Remove tab characters explicitly (common cause of error) |
|
|
.replaceAll("\t", "") // Remove tab characters explicitly (common cause of error) |
|
|
.replaceAll("\\s*:\\s*\n\\s*\"", ":\"") // Fix broken key-value splits |
|
|
.replaceAll("\\s*:\\s*\n\\s*\"", ":\"") // Fix broken key-value splits |
|
|
|