1
How can I consume in ajax the following Json(Coming from a Web Api Rest?)
[
{
"usuario": {
"id": 1,
"login": "gleyson",
"senha": "123",
"ativo": "S"
},
"id": 1,
"tipo": "J",
"razao_social": "INTELIDER SISTEMAS",
"nome_fantasia": "INTELIDER SISTEMAS",
"cpf_cnpj": "0",
"rg_insc_estadual": "0"
},
{
"usuario": {
"id": 2,
"login": "gleyson",
"senha": "123456",
"ativo": "S"
},
"id": 2,
"tipo": "J",
"razao_social": "INTELIDER",
"nome_fantasia": "INTELIDER",
"cpf_cnpj": "0",
"rg_insc_estadual": "0"
}
]
The detail is that one of the fields is an object.
How do you want to use this JSON? create HTML with it or just fetch a specific value?
– Sergio
@Sergio, as the relationship 1 = 1 wanted to know how to put in a table for example: name_fantasia, login, active.
– Gleyson Silva