Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access objects contained in an array #966

Open
resists21 opened this issue Jul 2, 2014 · 1 comment
Open

Access objects contained in an array #966

resists21 opened this issue Jul 2, 2014 · 1 comment

Comments

@resists21
Copy link

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.

@6pac
Copy link

6pac commented Jul 5, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants