if (json instanceof JSONArray){
JSONArray currentJson= ((JSONArray)json);
if (values == null) //array of strings (for last item)
if (json instanceof JSONArray){
JSONArray currentJson= ((JSONArray)json);
if (values == null) //array of strings (for last item)