How can I consume in ajax the following Json (coming from a Rest Web Api?)
[
{
"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.