code: public static boolean isJsonType(String contentType) {
  		return StringUtils.startsWith(contentType, "application/json") ||
  				StringUtils.startsWith(contentType, "application/javascript") ||
  				StringUtils.startsWith(contentType, "text/javascript");	// F U facebook!
  	}
docs: Checks if a response is of type JSON.
  @param contentType the value of "Content-Type" header
  @return true if JSON