public JSONObject toJson() {
		JSONObject rtn = new JSONObject();
		try
		{
			rtn.put("type", this.getClass().getSimpleName());
			rtn.put("value", this.getValueForOutput());
		} catch (JSONException e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return rtn;
	}