Code example for JsonReader

Methods: beginObject, endObject, setLenient

0
	} 
 
	private boolean processInput(InputStream in) {
		JsonReader jr;
		try { 
			jr = new JsonReader(new BufferedReader(new InputStreamReader(in,
					"UTF-8"))); 
 
			jr.setLenient(true);
			jr.beginObject();
 
			/* Read ReturnCode */ 
			Pair<String, Boolean> pair = AdminHelper
					.handleResponse(JsonCustomReader.readJSONRetCode(jr, in));
 
			if (!pair.getSecond()) {
				errorMessage = pair.getFirst();
				return false; 
			} 
		 
			/* Read User detail */ 
			userDetails = JsonCustomReader.readJSONUser(jr, in);
			/* No Friends */ 
			FriendsList.createInstance(new ArrayList<UserDetails>());
			 
			jr.endObject();
 
			return true; 
			 
			 
		} catch (UnsupportedEncodingException e) {