fun <T> JSONArray?.toList(): List<T>
Convenience method to convert a JSONArray into a List
Return list with the JSONArray values, or an empty list if the JSONArray was null