code: public static int getJSONColor(final JSONObject json, String elementName) throws JSONException {
          Object raw = json.get(elementName);
          return convertJSONColor(raw);
      }
docs: Gets a color formatted as an integer with ARGB ordering.
  
  @param json {@link JSONObject} to get the color from
  @param elementName Name of the color element
  @return An ARGB formatted integer
  @throws JSONException