private static ArrayList GetArrayList(object pJsonObject) { if (pJsonObject is ArrayList) { return (ArrayList)pJsonObject; } else { return new ArrayList(); } }