Javadoc
Gets a name to use from an object.
If the object is a String, then it will treat the string as the name.
If the object is a
JSONObject, then the name must be a parameter within the object.
If the object is a
JSONArray, then there can only be a single element, which should
contain the name.