I am trying to read a JSON file like this:
{ \"presentationName\" : \"Here some text\", \"presentationAutor\" : \"Here some text\", \"presentationSlide
You never assign a new value to jsonObject, so inside the loop it still refers to the full data object. I think you want something like:
jsonObject
JSONObject slide = i.next(); String title = (String)slide.get("title");