Fix for https://jira.codehaus.org/browse/GROOVY-7132

If Transfer-Encoding : chunked auto parsing JSON throws exception.
The workaround is to get whole text and then parse with JsonSlurper.