Here is a solution that doesn't use a loop and uses the Android API only:
InputStream inputStreamObject = PositionKeeperRequestTest.class.getResourceAsStream(jsonFileName);
byte[] data = new byte[inputStreamObject.available()];
if(inputStreamObject.read(data) == data.length) {
JSONObject jsonObject = new JSONObject(new String(data));
}