Added 2 methods to handle the default object return

The first one is getString which can now take an resource id to avoid a Resource.getString() if it's not neccessary (if we have a value)
The second one is a JSON string as a default value for the object return for getJSONArray() to avoid the creation of a JSONArray if it's not necessary