code: public static int getJSONColor(final JSONObject json, String elementName, int defColor) {
          try {
              return getJSONColor(json, elementName);
          } catch (JSONException e) {
              return defColor;
          }
      }
docs: Attempts to get a color formatted as an integer with ARGB ordering.  If the specified field
  doesn't exist, returns {@code defColor}.
  
  @param json {@link JSONObject} to get the color from
  @param elementName Name of the color element
  @param defColor Color to return if the element doesn't exist
  @return An ARGB formatted integer