ionic Cordova custom plugin for android not returning more than 4000 character in JSON response

I am trying to write a custom cordova plugin for ionic framework and android. I am calling a SOAP web service which returns HTML content in proper encoded form (a mail message body as HTML). However, when the result gets back to the browser, it gets truncated at a limit of 4062 - 4064 characters consistently.

Anyone come across an issue like this? any pointers towards the right direction would be a great help.

cordova.getThreadPool().execute(new Runnable() {
    @Override
    public void run() {
        callbackContext.success(<<MY_JSON_OBJECT_HERE>>);
    }
});

I have tried printing it to the console in a normal way and it prints the whole string properly. The length of the string is around 8000 characters.