2
I have the following answer
{
"users":[
{
"id":1,
"Name":"Rafael",
"label":"teste"
},
{
"id":2,
"Name":"Carlos",
"label":"teste"
}
],
"relations":[
{
"id":1
},
{
"id":2
}
]
}
And I want to armanezar in two arrays of objects
var usersArray;
var relationsArray;
I’ve tried so many ways and .map(JSON.parse)
does not work on my page.
var usersArray = json.users;
var relationsArray = json.relations;
– Gabriel Rodrigues