Here is the Solution:
The answer to the WCF call:
{
"odata.metadata": "http://luiz-note64/WcfOper/WcfOperDataService.svc/$metadata#Operacoes&$select=IdOperacao",
"value": [
{
"IdOperacao": "4234340"
}
]
}
Below the call code is the conversion of the field "Idoperacao" in
string:
Uri xuri = new Uri(uri, "/WcfOper/WcfOperDataService.svc/Operacoes?&$format=json&$filter=OperGuid%20eq%20"+ "'" + objLocal.OperGuid + "'" + "&$select=IdOperacao");
string retorno = await oper.GetStringAsync(xuri);
JObject jobject = JObject.Parse(retorno);
var sidoperacao = jobject["value"][0]["IdOperacao"].ToString();
That is: in sidoperacao
the value "4234340".
Can you tell us clearly what your doubt is?
– Leonel Sanches da Silva
Hello, Luiz, welcome to [en.so]. Please try to be much more specific when asking a question, so avoid this history of negative vote, question closing, reopening... and direct part to solve the problem. It seems that with what you presented it is already possible to answer... maybe there is already some question/answer ready on the site, the C# people will tell. Good luck!
– brasofilo