I'm trying to clean a this array:
[
{
"Cpf": null,
"Nascimento": null,
"Sexo": null,
"OnlyPerson": false,
"IsFinanc": false,
"Senha": null,
"ConfirmaSenha": null,
"Remover": false,
"TipoStr": null,
"FiltroStr": null,
"IdAgenciaLogarComo": 0,
"DontHashPass": false,
"IsPessoaSimples": false,
"IsVisitante": false,
"Permited": false,
"Id": 21980,
"Nome": "arrozfeijao",
"Ativo": true,
"Criacao": "2021-08-19T14:09:06.173",
"UltimaAlteracao": null,
"Email": "[email protected]",
"IdAgencia": 1,
"IdEndereco": null,
"IdPermissao": 4,
"Observacoes": null,
"Endereco": {
"Id": 0,
"Cep": null,
"Logradouro": null,
"Numero": null,
"Complemento": null,
"Bairro": null,
"Estado": null,
"Cidade": null
},
"Parceiro": null,
"Contato": [],
"Permissao": {
"Id": 4,
"Descricao": "Cliente",
"Pessoa": []
},
"AlterarSenha": [],
"Rede": [],
"Provider": [],
"AlertaPreco": [],
"Pedido2": [],
"_PageNumber": 0,
"PageNumber": 0,
"PageSize": 0,
"OrderBy": null,
"OrderDesc": false
}
]
This array is a checkbox selected in a table -> enter image description here I need a function to clean array fo every time I select one more checkbox. I has tryied to push all I need to new a variable, but if a select other checkbox (with other informations) dont work...
I need export to CSV this informations, but I don't need all this, I just wanna:
- "Cpf"
- "Nascimento"
- "Sexo"
- "Id"
- "Nome"
- "Ativo"
- "Criacao"
- "UltimaAlteracao"
- "Email"
- "Observacoes"
- "Endereco".
I know a i need a for, i just do no how to make this function :c