Page 1 of 1

A question about Hash

Posted: Fri Feb 21, 2020 1:14 pm
by vilian
Hi guys,
I have this Hash:

Code: Select all

{"Numero":68825,"Serie":"1","Filial":"","CNPJCli":"01716341000120","TpDoc":"6","InfAdic":null,"Erros":{"Erro":[{"Codigo":"033","Descricao":"CNPJ emissor nao autorizado para averbar...","ValorInformado":"009256139000175"}]}}
How could I get the content of "Descricao" ?

Re: A question about Hash

Posted: Fri Feb 21, 2020 1:46 pm
by leandro
Así debería funcionar

Code: Select all


cDes := hElhash ["Erros"]["Erro"][1]["Descricao"]

 

Re: A question about Hash

Posted: Fri Feb 21, 2020 2:00 pm
by vilian
Thanks ;)