I'll try to be short and get to the point.
When I choose a role, it adds it to an array with the role's name and whether it's selected or not (with true or false). Actually the array is saved the following way:
[
{
"name": "CDB_DBA",
"selected": true
},
{
"name": "CONNECT",
"selected": true
}
]
and I need it to be saved this way (with the roles I select from the checkbox list):
["CDB_DBA", "CONNECT"]
The array contains the selected roles, I'm sure it's pretty simple to change but I'm new to this and need some help. Thank you in advance. Here's the JSBin link to the project: