Code example for JSONArray

Methods: getJSONObjectoptString

0
	 * the package name 
	 */ 
	private String packageName;	
	 
	public DeclarationId(JSONArray obj)throws JSONException {
		module=new Module(obj.getJSONObject(0));
		name=obj.optString(1);
		packageName=obj.optString(2);
	} 
	 
	public String getName() {
		return name;
	} 
	public Module getModule() { 
		return module;
	} 
	public String getPackageName() {
		return packageName;
	} 
	 
Experience pair programming with AI  Get Codota for Java