Code example for JSONObject

Methods: optString

0
 
    return(chapter.optString("file"));
  } 
 
  String getTitle() {
    return(raw.optString("title"));
  } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE