I have a String
, which is then converted into an JSON-object:
public static final String JSON_STRING = "json string";
JSONObject jsonObject = new JSONObject(JSON_STRING);
But sometimes when the String
is too long, I get the error:
UTF8 representation for string * is too long for the constant pool
Are there other ways to get a such long string?