Code example for JsonReader

Methods: nextBooleanpeek

0
		return result;
	} 
 
	static Object getValue(JsonReader r) throws IOException {
		Object value = null;
		JsonToken token = r.peek();
 
		switch (token) {
		case NULL:
			r.nextNull();
			break; 
		case BOOLEAN:
			value = r.nextBoolean();
			break; 
		default: 
			value = r.nextString();
		} 
 
		return value;
	} 
Contextual code suggestions in your IDE  Get Codota for Java