There seems to be a max length to how many chars a string can hold. In my case it’s being populated with HTML via JSON and at around 1500 chars it crashes.
Its the same as what Java offers. If I understand your question correctly, you are trying to read HTML data (as JSON) from a service and it is crashing after receiving certain response. If that is the case, try if the same operation works from your browser or through simple HTML form.