JSONEscapeObject jsonResult = new JSONEscapeObject();
jsonResult.put("status", Constants.WEBSERVICE_STATUS_SUCCESS);
Iterator<Country> iterator = taxRegion.getCountries().iterator();
Vector<JSONEscapeObject> countries = new Vector<JSONEscapeObject>();
while (iterator.hasNext()) {
Country country = (Country) iterator.next();
JSONEscapeObject object = new JSONEscapeObject();
object.put("countryId", country.getCountryId());
object.put("countryCode", country.getCountryCode());
object.put("countryName", country.getCountryName());
countries.add(object);
}
jsonResult.put("countries", countries);
Iterator<State> iterator1 = taxRegion.getStates().iterator();
Vector<JSONEscapeObject> states = new Vector<JSONEscapeObject>();