diff --git a/pom.xml b/pom.xml index 5f8ed69..7b0811a 100644 --- a/pom.xml +++ b/pom.xml @@ -62,12 +62,14 @@ - - - org.springframework.boot - spring-boot-maven-plugin - - - + + + + org.springframework.boot + spring-boot-maven-plugin + + + + diff --git a/src/main/java/com/gcc/crslogs/service/BirthAndDeathDetailsService.java b/src/main/java/com/gcc/crslogs/service/BirthAndDeathDetailsService.java index 26f9cc9..d02681f 100644 --- a/src/main/java/com/gcc/crslogs/service/BirthAndDeathDetailsService.java +++ b/src/main/java/com/gcc/crslogs/service/BirthAndDeathDetailsService.java @@ -15,7 +15,7 @@ import org.springframework.http.ResponseEntity; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; -import org.springframework.web.client.RestTemplate; +import org.springframework.web.client.RestTemplate; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; @@ -120,6 +120,7 @@ public class BirthAndDeathDetailsService { // Remove illegal control characters (but keep line breaks if needed) return rawJson + .replace("\\", "\\\\") // Escape backslashes .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("\\s*:\\s*\n\\s*\"", ":\"") // Fix broken key-value splits