Open resists21 opened 10 years ago
I've got the following JSON output:
[{"username":"xxx","authorities":[{"authority":"ROLE_ADMINISTRATOR"}],"enabled":true,"lastname":"xxx","prename":"xxx","email":"xxx@xx.com","status":"xxx","ledIndex":1,"phoneNumbers":[]}]
How can I access the value of authority of the first object in the array authorities? With following column definition I just get the whole object:
{id: "authorities", name: "Berechtigung", field: "authorities",fieldIdx: 0, width: 105, editor: Slick.Editors.Text, sortable: true},
Thanks.
This is a javascript question, not a SlickGrid question. Simply, the JSON will have to processed and changed so that the property is no longer an array.
I've got the following JSON output:
[{"username":"xxx","authorities":[{"authority":"ROLE_ADMINISTRATOR"}],"enabled":true,"lastname":"xxx","prename":"xxx","email":"xxx@xx.com","status":"xxx","ledIndex":1,"phoneNumbers":[]}]
How can I access the value of authority of the first object in the array authorities? With following column definition I just get the whole object:
{id: "authorities", name: "Berechtigung", field: "authorities",fieldIdx: 0, width: 105, editor: Slick.Editors.Text, sortable: true},
Thanks.