/** * @param param is an InputOutput, Output or ReturnValue (JSONValueType) * @param value is a generic object readed from the json result array * @return an Object that rapresent the result JSON or the JSONObject itself */ public static Object JSONToTableType(Object value, String DBXTypeName) { if (DBXTypeName.Equals("TParams")) { return(TParams.CreateFrom(new TJSONObject((JObject)value))); } else { if ((DBXTypeName.Equals("TDBXReader")) || (DBXTypeName.Equals("TDBXReaderValue"))) { return(TDBXReader.createFrom(new TJSONObject((JObject)value))); } else { if (DBXTypeName.Equals("TDataSet")) { return(TDataSet.createFrom(new TJSONObject((JObject)value))); } } } throw new DBXException(DBXTypeName + " is not a table type"); }