How to access different json objects while rendering columns?

How to access different json objects while rendering columns?

energiadediableenergiadediable Posts: 1Questions: 1Answers: 0

I am trying to display data and view/edit/delete button using datatables.

I am getting userdata and permission using two objects like this:

JSON data:

{

"data": [
{

"userid": "1",

"username": "John",

"email": "john@gmail.com",

"userrole": "SYSTEM VENDOR",

"isactive": "Y",

"activationstat": "deactivate",

"activationmsg": "Deactivate"

}

],

"perm": {

"read": "y",

"edit": "y",

"delete": "n"

}

}

Button needs to be rendered for each row. Datatables code is attached.

How can I access "perm" json object for checking it's values?

Answers

This discussion has been closed.