Not directly because such JSON is not a list, but an object with a property of type "value".
So you could do something like this (you have to handle memory management, this is just for simplification)
TMyResponse = class
Value: TList<TMyClass>;
end;
Then yes, you can use Bcl.Json and deserialize it:
MyClass := TJson.Deserialize<TMyClass>(Json);
But if this is a XData service, why do you need to deserialize it manually instead of using TXDataClient class?
Ok, thank you for the clarification and suggestion.
But if this is a XData service, why do you need to deserialize it manually instead of using TXDataClient class?
Hmm, not sure to be honest. MyClass in this example is actually a composite of some properties from 3 related Aurelius entities. The service might be used by none Delphi client in addition to my Delphi clients, so I thought this was the way to go. But I'm absolutely open for input or suggestion if there is other/better way to handle it?