In Scala 2.11 I am using the Play JSON API and when the line executes it throws an error.
val bodyParsed = Json.parse(bodyText.replaceAll("\\\\", ""))
That is because the length of bodyText
is greater than 2^16 - 1.
How can I fix the problem?
I came across this post but I'm not sure whether it's the solution in my case.