by
577 11

Acessando sub linhas de um json

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/4053217/Acessando-sub-linhas-de-um-json?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
String json_resultado = "{\"hasErrors\":true,\"errors\":[{\"reference\":\"AcordoApplication\",\"message\":\"18 - Não existem dívidas pendentes.\"}]}"; var jObject = Newtonsoft.Json.Linq.JObject.Parse(json_resultado.ToString()); foreach (var itens in jObject["errors"]) { String resultado = itens["message"].ToString(); };
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus