public Passenger(JSONObject json) throws JSONException {
		try {
			if (json.has(AMOUNT)) {
				this.setAmount(Float.parseFloat(json.getString(AMOUNT)));
			}
			if (json.has(TOTAL)) {
				this.setTotal(Float.parseFloat(json.getString(TOTAL)));
			}
			if (json.has(NETAMOUNT)) {
				this.setNetamount(Float.parseFloat(json.getString(NETAMOUNT)));
			}
			if (json.has(TYPE)) {
				this.setType(json.getString(TYPE));
			}
			if (json.has(SURCHARGES)) {
				this.setSurcharges(Float.parseFloat(json.getString(SURCHARGES)));
			}
			if (json.has(TAX)) {
				this.setTax(Float.parseFloat(json.getString(TAX)));
			}
		} catch (NumberFormatException nfe) {
			logger.error(nfe);
			throw new JSONException("Error parsing string to float");
		}
//		if (json.has("ticketbydate")) {
//			this.setTicketbydate(json.getString("ticketbydate"));
//		}		
	}