A simple return query to my REST service yields the following answer:
{
"Id": 1,
"Descricao": "TIROLESA DE AÇO",
"Und": "UND",
"Fabrica": "STARROW",
"Estoque": 9,
"Preco": 0.39
},
However, querying with more than one object starts with {"Result": [
{
"Result":
[
{
....
....
....
}
],
"Id": 3,
"Exception": null,
"Status": 5,
"IsCanceled": false,
"IsCompleted": true,
"CreationOptions": 0,
"AsyncState": null,
"IsFaulted": false
}
This last return has a "header" ( Result
) that makes it difficult to deserialize my class, would it be possible to configure the return so that it returns only Array JSON
, without this header?