-1
I have a Key value object, where the value is an Object
Map<String, String> endereco = new Map<String, Object>();
endereco.put("logradouro", "Rua Um");
Map<String, Object> aluno = new Map<String, Object>();
aluno.put("nome","Teste Teste");
aluno.put("endereco", endereco);
To recover the name of the Student we do:
aluno.get("nome");
But to recover the backyard from the address as we do?
I tried to
aluno.get("endereco").get("logradouro");
But it doesn’t work.