"Non-Public Types is not supported yet" on Response.AsJson(new { ...})
Closed this issue · 0 comments
kenjiuno commented
Just to inform you...
return Response.AsJson(new {
Result = "OK",
DDID = DDID,
});
This doesn't work and return empty response.
Manually I have tried: Response.Contents(stream);
it raises Exception described below:
rpgmaker/NetJSON#126
Finally I have prepared public type:
return Response.AsJson(new Res {
Result = "OK",
DDID = DDID,
});
Oops my NetJSON is too old. (1.1.0.0)
Latest NetJSON (1.2.1.7) can handle it, I have tried: Install-Package NetJSON
. And JSON for anonymous type can be generated!
The problem has gone!