org.json.jsonexception: valor nulo de tipo org.json.jsonobject $ 1 no se puede convertir a jsonobject

String crappyPrefix = "null";

if(result.startsWith(crappyPrefix)){
    result = result.substring(crappyPrefix.length(), result.length());
}
JSONObject jo = new JSONObject(result);
Angry Ant