I am trying to read a JSON file like this:
{
\"presentationName\" : \"Here some text\",
\"presentationAutor\" : \"Here some text\",
\"presentationSlide
It's working! Thx Russell. I will finish my exercice and try GSON to see the difference.
New code here:
JSONArray slideContent = (JSONArray) jsonObject.get("presentationSlides");
Iterator i = slideContent.iterator();
while (i.hasNext()) {
JSONObject slide = (JSONObject) i.next();
String title = (String)slide.get("title");
System.out.println(title);
}