This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.
Deserializing Generic Classes
Does anyone know if the following should work??
jsonVal := TJSONObject.ParseJsonValue(AList.Text);
jsonDeSer := TJsonDeserializer.Create(@jsonVal);
FGridData := jsonDeSer.Value<TZzyGridDroppedData<T>>; // Problem line
The above fails to deserialize the class of <T> with an error raised 'invalid state'.
Thanks.

Comments