Code example for JsonObject

Methods: gethas

0
		return type;
	} 
 
	public boolean highlight() { 
		boolean highlight = false;
		if(o.has("highlight"))
			highlight = o.get("highlight").getAsBoolean();
		return highlight;
	} 
	 
	public boolean has(String name) {
		return o.has(name) && !o.get(name).isJsonNull();
	} 
	 
	public boolean getBoolean(String name) {
		if(!o.has(name) || o.get(name).isJsonNull())
			return false; 
		return o.get(name).getAsBoolean();
	} 
	 
Connect your IDE to all the code out there  Get Codota for Java