I have a type defined thusly:
TListOfStringlist = TList<TStringlist>;
I have an XData service defined like this:
function MyFunc( . . . ) : TListOfStringlist;
When I call it via TXDataClient from a VCL test app, I get back what's expected.
When I call it via this in a WEBCore app:
var comps : TListOfStringList
. . .
comps := await( TDbController.Shared.MyFunc( . . . ) );
I get back nothing useful. The value of comps.Count is "undefined" when it should = 3.
I changed the proxy call to return this string instead:
Result := LResp.Response.ContentAsText;
and the actual response looks like this:
{
"value": [
[
"lineA1",
"lineA2",
"lineA3"
],
[
"lineB1",
"lineB2",
"lineB3"
],
[
"lineC1",
"lineC2",
"lineC3"
]
]
}
This should be a TList of 3 TStringlists, each of which contains 3 strings. But it's not being created correctly.
I guess that from a JSON standpoint, it's an: array of array of string.
The data coming back seems to be the right structure, but the desired object is not being created correctly in the WEB Core environment.
Is this a bug somewhere, or am I just missing something?
