Code example for JsonReader

Methods: nextBooleanpeek

0
	 * @param jr JsonReader 
	 * @return ·µ»Ø·ûºÏÀàÐ͵Ävalue 
	 */ 
	public static synchronized Object next(JsonReader jr) {
		try { 
			JsonToken token = jr.peek();
			if (token == JsonToken.NULL) {
				jr.nextNull();
				return "null"; 
			} else if (token == JsonToken.BOOLEAN) {
				return jr.nextBoolean();
			} else if (token == JsonToken.NUMBER) {
				return jr.nextLong();
			} else if (token == JsonToken.STRING) {
				return jr.nextString();
			} 
		} catch (IOException e) {
			e.printStackTrace();
		} 
		return "null"; 
Connect your IDE to all the code out there  Get Codota for Java