Code example for JSONTokener

Methods: nextValue

0
		return myError;
	} 
	public Object getJsonResult() {
		if (!success) return null;
		try { 
			JSONTokener jt = new JSONTokener(myResult);
			return jt.nextValue();
		} catch (JSONException ex) {
			//server returned malformed data 
			return null; 
		} 
	} 
	public String getResult() {
		return myResult;
	} 
	public Bitmap getBitmapResult() {
		return myBmpResult;
	} 
	public Document getXmlDocumentResult() {
		return myXmlDocument;
	}